43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
|
|
|
return
|
|
[
|
|
'paths' => [
|
|
'migrations' => '%%PHINX_CONFIG_DIR%%/../db/migrations',
|
|
'seeds' => '%%PHINX_CONFIG_DIR%%/../db/seeds'
|
|
],
|
|
'schema_file' => '%%PHINX_CONFIG_DIR%%/../db/schema.php',
|
|
'environments' => [
|
|
'default_migration_table' => 'phinxlog',
|
|
'default_environment' => 'development',
|
|
'production' => [
|
|
'adapter' => 'mysql',
|
|
'host' => $_ENV['DB_HOST'],
|
|
'name' => $_ENV['DB_NAME'],
|
|
'user' => $_ENV['DB_USER'],
|
|
'pass' => $_ENV['DB_PASSWORD'],
|
|
'port' => '3306',
|
|
'charset' => 'utf8',
|
|
],
|
|
'development' => [
|
|
'adapter' => 'mysql',
|
|
'host' => $_ENV['DB_HOST'] ?? 'localhost',
|
|
'name' => $_ENV['DB_NAME'] ?? 'money_dev',
|
|
'user' => $_ENV['DB_USER'] ?? 'money',
|
|
'pass' => $_ENV['DB_PASSWORD'] ?? 'money_pass',
|
|
'port' => '3307',
|
|
'charset' => 'utf8',
|
|
],
|
|
'testing' => [
|
|
'adapter' => 'mysql',
|
|
'host' => $_ENV['DB_HOST'],
|
|
'name' => $_ENV['DB_NAME'],
|
|
'user' => $_ENV['DB_USER'],
|
|
'pass' => $_ENV['DB_PASSWORD'],
|
|
'port' => '3306',
|
|
'charset' => 'utf8',
|
|
]
|
|
],
|
|
'version_order' => 'creation'
|
|
];
|