-
Notifications
You must be signed in to change notification settings - Fork 61
/
phinx.php
33 lines (31 loc) · 1.08 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
<?php
// load our environment files - used to store credentials & configuration
(new Dotenv\Dotenv(__DIR__))->load();
return
[
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
],
'environments' =>
[
'default_database' => $_ENV['DB_NAME'],
'default_migration_table' => 'Phinx_Log',
'mysql' =>
[
'adapter' => 'mysql',
'host' => $_ENV['DB_HOST'],
'name' => $_ENV['DB_NAME'],
'user' => $_ENV['DB_USER'],
'pass' => $_ENV['DB_PASS'],
'port' => 3306,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
'snap' =>
[
'adapter' => 'sqlite',
'name' => $_ENV["SNAP_DATA"] . "/lxdMosaic",
'suffix' => '.db'
],
],
];