From af5ea186857e7ec4dfcb7151c3a4301023c45361 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 31 Aug 2025 21:27:22 -0400 Subject: [PATCH] database group --- app/Config/Database.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/app/Config/Database.php b/app/Config/Database.php index 553a663..1bf39c8 100644 --- a/app/Config/Database.php +++ b/app/Config/Database.php @@ -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'; + } } }