mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
feat: separate mariadb driver (#4132)
* feat: separate mariadb driver * chore: add mariadb install dump
This commit is contained in:
@@ -142,7 +142,7 @@ class ShowStatisticsData implements RequestHandlerInterface
|
||||
$dbFormattedDatetime = match ($query->getConnection()->getDriverName()) {
|
||||
'sqlite' => "strftime($format, $column)",
|
||||
'pgsql' => "TO_CHAR($column, $format)",
|
||||
'mysql' => "DATE_FORMAT($column, $format)",
|
||||
'mysql', 'mariadb' => "DATE_FORMAT($column, $format)",
|
||||
default => throw new Exception('Unsupported database driver'),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user