-
Notifications
You must be signed in to change notification settings - Fork 23
/
phinx.php
31 lines (29 loc) · 885 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
<?php
$config = json_decode(file_get_contents(__DIR__ . '/../config.json'), true);
return array(
'paths' => array(
'migrations' => __DIR__.'/migrations',
),
'environments' => array(
'default_migration_table' => 'phinxlog',
'default_database' => 'corpora',
'production' => array(
'adapter' => 'mysql',
'host' => $config['mysql']['host'],
'name' => $config['mysql']['dbname'],
'user' => $config['mysql']['user'],
'pass' => $config['mysql']['passwd'],
'port' => '3306',
'charset' => 'utf8',
),
'development' => array(
'adapter' => 'mysql',
'host' => '127.0.0.1',
'name' => 'corpora',
'user' => 'root',
'pass' => '',
'port' => '3306',
'charset' => 'utf8'
),
),
);