-
Notifications
You must be signed in to change notification settings - Fork 0
/
phinx.php
47 lines (43 loc) · 1.65 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
use App\Config\DotEnvConfig;
$dotenv = new DotEnvConfig();
$dotenv->initConfigs();
return
[
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'docker',
'production' => [
'adapter' => $_ENV["PRODUCTION_DB_ADAPTER"],
'host' => $_ENV["PRODUCTION_DB_HOST"],
'name' => $_ENV["PRODUCTION_DB_NAME"],
'user' => $_ENV["PRODUCTION_DB_USER"],
'pass' => $_ENV["PRODUCTION_DB_PASS"],
'port' => $_ENV["PRODUCTION_DB_PORT"],
'charset' => 'utf8',
],
'development' => [
'adapter' => $_ENV["DEBUG_DB_ADAPTER"],
'host' => $_ENV["DEBUG_DB_HOST"],
'name' => $_ENV["DEBUG_DB_NAME"],
'user' => $_ENV["DEBUG_DB_USER"],
'pass' => $_ENV["DEBUG_DB_PASS"],
'port' => $_ENV["DEBUG_DB_PORT"],
'charset' => 'utf8',
],
'docker' => [
'adapter' => $_ENV["DOCKER_DB_ADAPTER"],
'host' => $_ENV["DOCKER_DB_HOST"],
'name' => $_ENV["DOCKER_DB_NAME"],
'user' => $_ENV["DOCKER_DB_USER"],
'pass' => $_ENV["DOCKER_DB_PASS"],
'port' => $_ENV["DOCKER_DB_PORT"],
'charset' => 'utf8',
]
],
'version_order' => 'creation'
];