From 52f735811adb774de2c02993c019b2e2e382cfde Mon Sep 17 00:00:00 2001 From: Biplob Hossain Date: Tue, 23 Oct 2018 16:05:24 +0900 Subject: [PATCH] Add SQL modes to database config for MySQL v8 --- config/database.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/database.php b/config/database.php index 5ed066d..1a34dfe 100644 --- a/config/database.php +++ b/config/database.php @@ -52,6 +52,14 @@ return [ 'prefix' => '', 'strict' => true, 'engine' => null, + 'modes' => [ + 'ONLY_FULL_GROUP_BY', + 'STRICT_TRANS_TABLES', + 'NO_ZERO_IN_DATE', + 'NO_ZERO_DATE', + 'ERROR_FOR_DIVISION_BY_ZERO', + 'NO_ENGINE_SUBSTITUTION', + ], ], 'pgsql' => [