database group
This commit is contained in:
@@ -46,6 +46,28 @@ class Database extends Config
|
||||
],
|
||||
];
|
||||
|
||||
public array $production = [
|
||||
'DSN' => '',
|
||||
'hostname' => '10.13.3.60',
|
||||
'username' => 'merms_panel',
|
||||
'password' => 'merms_panel',
|
||||
'database' => 'merms_panel',
|
||||
'schema' => 'public',
|
||||
'DBDriver' => 'Postgre',
|
||||
'DBPrefix' => '',
|
||||
'pConnect' => false,
|
||||
'DBDebug' => true,
|
||||
'charset' => 'utf8',
|
||||
'swapPre' => '',
|
||||
'failover' => [],
|
||||
'port' => 5432,
|
||||
'dateFormat' => [
|
||||
'date' => 'Y-m-d',
|
||||
'datetime' => 'Y-m-d H:i:s',
|
||||
'time' => 'H:i:s',
|
||||
],
|
||||
];
|
||||
|
||||
public array $default_old = [
|
||||
'DSN' => '',
|
||||
'hostname' => 'localhost',
|
||||
@@ -219,5 +241,8 @@ class Database extends Config
|
||||
if (ENVIRONMENT === 'testing') {
|
||||
$this->defaultGroup = 'tests';
|
||||
}
|
||||
if(ENVIRONMENT == 'production'){
|
||||
$this->defaultGroup ='production';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user