mirror of
https://github.com/flarum/framework.git
synced 2025-06-15 06:26:28 +08:00
feat: separate mariadb driver (#4132)
* feat: separate mariadb driver * chore: add mariadb install dump
This commit is contained in:
@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user