diff --git a/config/database.php b/config/database.php index a0abb0f..60af883 100644 --- a/config/database.php +++ b/config/database.php @@ -64,6 +64,20 @@ 'prefix' => '', 'strict' => true, 'engine' => null, + 'modes' => [ + // For now, disable the full_group_by restriction. + // There are just too many queries not optimized + // for this, for now. + //'ONLY_FULL_GROUP_BY', + + // All of the other modes though, they should stay! + 'STRICT_TRANS_TABLES', + 'NO_ZERO_IN_DATE', + 'NO_ZERO_DATE', + 'ERROR_FOR_DIVISION_BY_ZERO', + 'NO_AUTO_CREATE_USER', + 'NO_ENGINE_SUBSTITUTION' + ], ], 'pgsql' => [