-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphinx.php
50 lines (48 loc) · 1.93 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
39
40
41
42
43
44
45
46
47
48
49
50
<?php
// load our environment files - used to store credentials & configuration
(new \Symfony\Component\Dotenv\Dotenv())->load('.env');
return
[
'paths' => [
'migrations' => 'config/db/migrations',
'seeds' => 'config/db/seeds'
],
'environments' =>
[
'default_database' => 'development',
'default_migration_table' => 'phinxlog',
'development' =>
[
'adapter' => 'mysql',
'host' => getenv('DATABASE_HOST'),
'name' => getenv('DATABASE_NAME'),
'user' => getenv('DATABASE_USERNAME'),
'pass' => getenv('DATABASE_PASSWORD'),
'port' => 3306,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
'testing' =>
[
'adapter' => 'mysql',
'host' => getenv('DATABASE_HOST'),
'name' => getenv('DATABASE_NAME'),
'user' => getenv('DATABASE_USERNAME'),
'pass' => getenv('DATABASE_PASSWORD'),
'port' => 3306,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
'production' =>
[
'adapter' => 'mysql',
'host' => getenv('DATABASE_HOST'),
'name' => getenv('DATABASE_NAME'),
'user' => getenv('DATABASE_USERNAME'),
'pass' => getenv('DATABASE_PASSWORD'),
'port' => 3306,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
],
];