-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphinx.php
More file actions
38 lines (36 loc) · 1.43 KB
/
Copy pathphinx.php
File metadata and controls
38 lines (36 loc) · 1.43 KB
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
<?php
// Load environment variables for local development if a config file exists.
// This allows Phinx to work both locally and in a production environment.
if (file_exists(__DIR__ . '/backend/config.php')) {
require_once __DIR__ . '/backend/config.php';
}
return
[
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'production',
'production' => [
'adapter' => 'mysql',
'host' => defined('DB_HOST') ? DB_HOST : getenv('DB_HOST'),
'name' => defined('DB_NAME') ? DB_NAME : getenv('DB_NAME'),
'user' => defined('DB_USER') ? DB_USER : getenv('DB_USER'),
'pass' => defined('DB_PASS') ? DB_PASS : getenv('DB_PASS'),
'port' => '3306',
'charset' => 'utf8',
],
'development' => [
'adapter' => 'mysql',
'host' => defined('DB_HOST') ? DB_HOST : getenv('DB_HOST') ?: 'localhost',
'name' => defined('DB_NAME') ? DB_NAME : getenv('DB_NAME') ?: 'sigortacudb',
'user' => defined('DB_USER') ? DB_USER : getenv('DB_USER') ?: 'root',
'pass' => defined('DB_PASS') ? DB_PASS : getenv('DB_PASS') ?: '',
'port' => '3306',
'charset' => 'utf8',
]
],
'version_order' => 'creation'
];