-
Notifications
You must be signed in to change notification settings - Fork 2
/
phinx.php
38 lines (36 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
<?php
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
return [
'paths' => [
'migrations' => [
'storage/db/migrations',
],
'seeds' => [
'storage/db/seeds',
]
],
'environments' => [
'default_migration_table' => 'ut_migrations',
'default_database' => 'development',
'production' => [
'adapter' => 'mysql',
'host' => getenv('DATA_API_MYSQL_HOST'),
'name' => getenv('DATA_API_MYSQL_NAME'),
'user' => getenv('DATA_API_MYSQL_USER'),
'pass' => getenv('DATA_API_MYSQL_PASS'),
'port' => 3306,
'charset' => 'utf8',
],
'development' => [
'adapter' => 'mysql',
'host' => getenv('DATA_API_MYSQL_HOST'),
'name' => getenv('DATA_API_MYSQL_NAME'),
'user' => getenv('DATA_API_MYSQL_USER'),
'pass' => getenv('DATA_API_MYSQL_PASS'),
'port' => 3306,
'charset' => 'utf8',
],
],
'version_order' => 'creation',
];