-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phinx.php
26 lines (24 loc) · 763 Bytes
/
phinx.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();
return [
"paths" => [
"migrations" => "%%PHINX_CONFIG_DIR%%/db/migrations",
"seeds" => "%%PHINX_CONFIG_DIR%%/db/seeds",
],
"environments" => [
"default_migration_table" => "phinxlog",
"default_environment" => "production",
"production" => [
"adapter" => "mysql",
"host" => $_ENV["MYSQL_HOST"],
"name" => $_ENV["MYSQL_DB"],
"user" => $_ENV["MYSQL_USERNAME"],
"pass" => $_ENV["MYSQL_PASSWORD"],
"port" => $_ENV["MYSQL_PORT"],
"charset" => "utf8",
"collation" => "utf8_unicode_ci",
],
],
"version_order" => "creation",
];