Skip to content

Commit 6a301f6

Browse files
committed
fix: mariadb requires ANSI mode enabled
1 parent 248e520 commit 6a301f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/database.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@
8585
'prefix_indexes' => true,
8686
'strict' => true,
8787
'engine' => null,
88-
'options' => \extension_loaded('pdo_mysql') ? array_filter([
88+
'modes' => [
89+
'ANSI',
90+
],
91+
'options' => \extension_loaded('pdo_mysql') ? array_filter([
8992
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
9093
]) : [],
9194
],

0 commit comments

Comments
 (0)