From f0107129fbea072488ef78f40456066c2f692104 Mon Sep 17 00:00:00 2001 From: raishvaria Date: Thu, 28 Nov 2019 16:06:18 +0530 Subject: [PATCH] fix groupby issue on mysql --- config/database.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/database.php b/config/database.php index ba54a0ea..e8785979 100644 --- a/config/database.php +++ b/config/database.php @@ -53,6 +53,15 @@ return [ 'prefix_indexes' => true, 'strict' => true, 'engine' => null, + 'modes' => [ + //'ONLY_FULL_GROUP_BY', // Disable this to allow grouping by one column + 'STRICT_TRANS_TABLES', + 'NO_ZERO_IN_DATE', + 'NO_ZERO_DATE', + 'ERROR_FOR_DIVISION_BY_ZERO', + 'NO_AUTO_CREATE_USER', + 'NO_ENGINE_SUBSTITUTION' + ], ], 'pgsql' => [