diff --git a/backend/core/Database/Database.php b/backend/core/Database/Database.php index 7e49abd..a1ecf35 100644 --- a/backend/core/Database/Database.php +++ b/backend/core/Database/Database.php @@ -53,6 +53,12 @@ class Database $cfg = self::$map[$name]; $dbname = getenv($cfg['name']); + + // 🔥 OVERRIDE: Prevent crash if .env on server still has the old wrong name + if ($name === 'ride' && $dbname === 'intaleq-ridesDB') { + $dbname = 'rideDB'; + } + $host = getenv($cfg['host']) ?: 'localhost'; $user = getenv($cfg['user']); $pass = getenv($cfg['pass']);