-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphinx.php
More file actions
27 lines (24 loc) · 741 Bytes
/
phinx.php
File metadata and controls
27 lines (24 loc) · 741 Bytes
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
<?php
use support\DataBase;
$env = parse_ini_file('.env', true);
return
[
'paths' => [
'migrations' => 'Database/Migrations',
'seeds' => 'Database/Seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'dev',
'dev' => [
'adapter' => $env['DB_CONNECTION'],
'host' => $env['DB_HOST'],
'name' => $env['DB_DATABASE'],
'user' => $env['DB_USERNAME'],
'pass' => $env['DB_PASSWORD'],
'port' => $env['DB_PORT'],
'charset' => 'utf8'
]
],
'version_order' => 'creation'
];