-
Notifications
You must be signed in to change notification settings - Fork 0
/
phinx.php
36 lines (34 loc) · 1.3 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
<?php
$config = require "config/local.php";
return [
'paths' => [
'migrations' => 'db/migrations',
'seeds' => 'db/seeds',
],
'environments' => [
'default_migration_table' => 'migrations',
'default_database' => 'development',
'development' => [
'adapter' => 'mysql',
'host' => $config['development']['db_host'],
'name' => $config['development']['db_name'],
'user' => $config['development']['db_user'],
'pass' => $config['development']['db_pass'],
'port' => $config['development']['db_port'],
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
],
'production' => [
'adapter' => 'mysql',
'host' => $config['production']['db_host'],
'name' => $config['production']['db_name'],
'user' => $config['production']['db_user'],
'pass' => $config['production']['db_pass'],
'port' => $config['production']['db_port'],
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
],
],
];