-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathphinx.php
36 lines (27 loc) · 855 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
33
34
35
36
<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
$config = require __DIR__ . '/config/config.php';
return [
'version_order' => 'creation',
'paths' => [
'migrations' => 'db/migrations',
'seeds' => 'db/seeds',
],
'environments' => [
'default_migration_table' => 'kg_migration',
'default_environment' => 'production',
'production' => [
'adapter' => 'mysql',
'host' => $config['db']['host'],
'port' => $config['db']['port'],
'name' => $config['db']['dbname'],
'user' => $config['db']['username'],
'pass' => $config['db']['password'],
'charset' => $config['db']['charset'],
],
],
];