forked from jitamin/jitamin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phinx.php
53 lines (49 loc) · 1.76 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
* This file is part of Jitamin.
*
* Copyright (C) Jitamin Team
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
|--------------------------------------------------------------------------
| Please DO NOT modify me.
|--------------------------------------------------------------------------
*/
// Register The Auto Loader
require __DIR__.'/bootstrap/autoload.php';
$db = require __DIR__.'/config/config.php';
return [
'paths' => [
'migrations' => 'database/migrations',
'seeds' => 'database/seeds',
],
'environments' => [
'default_migration_table' => 'migrations',
'default_database' => $db['db_driver'],
'mysql' => [
'adapter' => 'mysql',
'host' => $db['db_connections']['mysql']['host'],
'name' => $db['db_connections']['mysql']['database'],
'user' => $db['db_connections']['mysql']['username'],
'pass' => $db['db_connections']['mysql']['password'],
'port' => $db['db_connections']['mysql']['port'],
'charset' => 'utf8',
],
'pgsql' => [
'adapter' => 'pgsql',
'host' => $db['db_connections']['pgsql']['host'],
'name' => $db['db_connections']['pgsql']['database'],
'user' => $db['db_connections']['pgsql']['username'],
'pass' => $db['db_connections']['pgsql']['password'],
'port' => $db['db_connections']['pgsql']['port'],
'charset' => 'utf8',
],
'sqlite' => [
'adapter' => 'sqlite',
'name' => $db['db_connections']['sqlite']['database'],
],
],
];