You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
789 B
29 lines
789 B
<?php
|
|
require 'public/index.php';
|
|
$migrations = [];
|
|
$seeds = [];
|
|
foreach ($app->getModules() as $module) {
|
|
if ($module::MIGRATIONS) {
|
|
$migrations[] = $module::MIGRATIONS;
|
|
}
|
|
if ($module::SEEDS) {
|
|
$seeds[] = $module::SEEDS;
|
|
}
|
|
}
|
|
return [
|
|
'paths' => [
|
|
'migrations' => $migrations,
|
|
'seeds' => $seeds
|
|
],
|
|
'environments' => [
|
|
'default_database' => 'development',
|
|
'development' => [
|
|
'adapter' => 'mysql',
|
|
'host' => $app->getContainer()->get('database.host'),
|
|
'name' => $app->getContainer()->get('database.name'),
|
|
'user' => $app->getContainer()->get('database.username'),
|
|
'pass' => $app->getContainer()->get('database.password')
|
|
]
|
|
]
|
|
];
|