-
-
Notifications
You must be signed in to change notification settings - Fork 193
/
phinx.php
35 lines (32 loc) · 999 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
32
33
34
35
<?php
use Dotenv\Dotenv;
$dotenv = Dotenv::create(__DIR__);
$dotenv->load();
return
[
'paths' => [
'migrations' => [
'Vokuro\\Migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations'
],
'seeds' => [
'Vokuro\\Seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds',
],
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_database' => 'development',
'development' => [
'adapter' => strtolower(getenv('DB_ADAPTER')),
'host' => getenv('DB_HOST'),
'name' => strtolower(getenv('DB_ADAPTER')) === 'sqlite' ?
'%%PHINX_CONFIG_DIR%%/db/' . getenv('DB_NAME') :
getenv('DB_NAME'),
'user' => getenv('DB_USERNAME'),
'pass' => getenv('DB_PASSWORD'),
'port' => getenv('DB_PORT'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
],
'version_order' => 'creation'
];