feat: separate mariadb driver (#4132)
Some checks failed
Backend Tests / run (push) Has been cancelled
Frontend Workflow / run (push) Has been cancelled
Static Code Analysis / run (push) Has been cancelled

* feat: separate mariadb driver
* chore: add mariadb install dump
This commit is contained in:
Sami Mazouz
2024-12-02 10:17:27 +01:00
committed by GitHub
parent d90573f8f1
commit 097a54289f
16 changed files with 465 additions and 63 deletions

View File

@ -41,7 +41,7 @@ class SetupScript
$this->driver = getenv('DB_DRIVER') ?: 'mysql';
$this->host = getenv('DB_HOST') ?: 'localhost';
$this->port = intval(getenv('DB_PORT') ?: match ($this->driver) {
'mysql' => 3306,
'mysql', 'mariadb' => 3306,
'pgsql' => 5432,
default => 0,
});