-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphinx.php
32 lines (27 loc) · 816 Bytes
/
phinx.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', __DIR__ . DS);
use josegonzalez\Dotenv\Loader;
require_once __DIR__ . DS . 'vendor' . DS . 'autoload.php';
require_once __DIR__ . DS . 'config' . DS . 'bootstrap.php';
$config_file = __DIR__ . DS . 'config' . DS . '.env';
if (file_exists($config_file)) {
(new Loader($config_file))
->parse()
->toEnv();
}
return
[
'paths' => [
'migrations' => __DIR__ . '/db/migrations',
'seeds' => __DIR__ . '/db/seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'environment',
'environment' => [
'dsn' => env('DATABASE_URL'),
],
'version_order' => 'creation'
]
];