-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphinx.php
40 lines (38 loc) · 1.05 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
<?php
require 'configs/database.php';
return
[
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations/%%PHINX_ENVIRONMENT%%',
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds/%%PHINX_ENVIRONMENT%%'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'development',
'production' => [
'adapter' => 'mysql',
'host' => DB_HOST,
'name' => 'production_db',
'user' => 'root',
'pass' => '',
'port' => '3306',
'charset' => 'utf8',
],
'development' => [
'adapter' => DB_TYPE,
'host' => DB_HOST,
'name' => DB_NAME,
'user' => DB_USER,
'pass' => DB_PASS,
'port' => DB_PORT,
'charset' => 'utf8',
'suffix' => '.db'
],
'testing' => [
'adapter' => 'sqlite',
'name' => 'test',
'suffix' => '.db'
]
],
'version_order' => 'creation'
];