v0.1.0
This commit is contained in:
41
backend/api/phinx.php
Normal file
41
backend/api/phinx.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
return
|
||||
[
|
||||
'paths' => [
|
||||
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
|
||||
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds'
|
||||
],
|
||||
'environments' => [
|
||||
'default_migration_table' => 'phinxlog',
|
||||
'default_environment' => 'development',
|
||||
'production' => [
|
||||
'adapter' => 'mysql',
|
||||
'host' => $_ENV['DB_HOST'],
|
||||
'name' => $_ENV['MYSQL_DATABASE'],
|
||||
'user' => $_ENV['MYSQL_USER'],
|
||||
'pass' => $_ENV['MYSQL_PASSWORD'],
|
||||
//'port' => '3306',
|
||||
'charset' => 'utf8',
|
||||
],
|
||||
'development' => [
|
||||
'adapter' => 'mysql',
|
||||
'host' => $_ENV['DB_HOST'],
|
||||
'name' => $_ENV['MYSQL_DATABASE'] . '_dev',
|
||||
'user' => $_ENV['MYSQL_USER'],
|
||||
'pass' => $_ENV['MYSQL_PASSWORD'],
|
||||
//'port' => '3306',
|
||||
'charset' => 'utf8',
|
||||
],
|
||||
'testing' => [
|
||||
'adapter' => 'mysql',
|
||||
'host' => $_ENV['DB_HOST'],
|
||||
'name' => $_ENV['MYSQL_DATABASE'] . '_test',
|
||||
'user' => $_ENV['MYSQL_USER'],
|
||||
'pass' => $_ENV['MYSQL_PASSWORD'],
|
||||
//'port' => '3306',
|
||||
'charset' => 'utf8',
|
||||
]
|
||||
],
|
||||
'version_order' => 'creation'
|
||||
];
|
Reference in New Issue
Block a user