-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphinx.php
More file actions
23 lines (20 loc) · 725 Bytes
/
phinx.php
File metadata and controls
23 lines (20 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
return [
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/resources/db/migrations',
'seeds' => '%%PHINX_CONFIG_DIR%%/resources/db/seeds',
],
'environments' => [
'default_migration_table' => 'Migrations',
'default_database' => 'app',
'app' => [
'adapter' => 'mysql',
'host' => getenv('MYSQL_HOST') ?: '127.0.0.1',
'name' => getenv('MYSQL_DATABASE') ?: 'app',
'user' => getenv('MYSQL_USERNAME') ?: 'root',
'pass' => getenv('MYSQL_PASSWORD') ?: '',
'port' => getenv('MYSQL_PORT') ?: '3306',
'charset' => 'utf8',
],
],
];