further mysql/DB_TYPE related cleanup

This commit is contained in:
Andrew Dolgov
2025-04-14 15:21:10 +03:00
parent b154bc7a10
commit 7e403aae92
5 changed files with 34 additions and 69 deletions

View File

@@ -27,7 +27,7 @@ class Db {
$db_port = Config::get(Config::DB_PORT) ? ';port=' . Config::get(Config::DB_PORT) : '';
$db_host = Config::get(Config::DB_HOST) ? ';host=' . Config::get(Config::DB_HOST) : '';
return Config::get(Config::DB_TYPE) . ':dbname=' . Config::get(Config::DB_NAME) . $db_host . $db_port;
return 'pgsql:dbname=' . Config::get(Config::DB_NAME) . $db_host . $db_port;
}
// this really shouldn't be used unless a separate PDO connection is needed