Add phinx to the project.
This commit is contained in:
parent
84a2f2361c
commit
45639c8d9b
@ -13,7 +13,8 @@
|
|||||||
"slim/flash": "^0.4.0",
|
"slim/flash": "^0.4.0",
|
||||||
"odan/session": "^6.1",
|
"odan/session": "^6.1",
|
||||||
"dotenv-org/phpdotenv-vault": "^0.2.4",
|
"dotenv-org/phpdotenv-vault": "^0.2.4",
|
||||||
"react/react": "^1.4"
|
"react/react": "^1.4",
|
||||||
|
"robmorgan/phinx": "^0.16.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^11.1",
|
"phpunit/phpunit": "^11.1",
|
||||||
@ -33,6 +34,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./vendor/bin/phpunit tests --display-warnings"
|
"test": "./vendor/bin/phpunit tests --display-warnings",
|
||||||
|
"phinx": "./vendor/bin/phinx"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1086
app/composer.lock
generated
1086
app/composer.lock
generated
File diff suppressed because it is too large
Load Diff
41
app/phinx.php
Normal file
41
app/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' => 'localhost',
|
||||||
|
'name' => 'production_db',
|
||||||
|
'user' => 'root',
|
||||||
|
'pass' => '',
|
||||||
|
'port' => '3306',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
],
|
||||||
|
'development' => [
|
||||||
|
'adapter' => 'mysql',
|
||||||
|
'host' => 'localhost',
|
||||||
|
'name' => 'development_db',
|
||||||
|
'user' => 'root',
|
||||||
|
'pass' => '',
|
||||||
|
'port' => '3306',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
],
|
||||||
|
'testing' => [
|
||||||
|
'adapter' => 'mysql',
|
||||||
|
'host' => 'localhost',
|
||||||
|
'name' => 'testing_db',
|
||||||
|
'user' => 'root',
|
||||||
|
'pass' => '',
|
||||||
|
'port' => '3306',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'version_order' => 'creation'
|
||||||
|
];
|
Loading…
Reference in New Issue
Block a user