forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phinx.php
29 lines (26 loc) · 772 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
<?php
require_once __DIR__.'/vendor/autoload.php';
try {
(new Dotenv\Dotenv(__DIR__))->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
//
}
return [
'paths' => [
'migrations' => __DIR__ . '/migrations',
'seeds' => __DIR__ . '/seeds',
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_database' => 'ushahidi',
'ushahidi' => [
'adapter' => 'mysql', // todo: how to make this dynamic?
'host' => getenv('DB_HOST'),
'name' => getenv('DB_DATABASE'),
'user' => getenv('DB_USERNAME'),
'pass' => getenv('DB_PASSWORD'),
'unix_socket' => getenv('DB_SOCKET'),
'charset' => 'utf8',
],
]
];