From 794ac48172531c0eb2b276a02f391af015ec61b8 Mon Sep 17 00:00:00 2001 From: Phan An Date: Sun, 4 Dec 2022 13:33:21 +0100 Subject: [PATCH] fix: setting MySQL strict mode to true breaks migration (#1615) --- config/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.php b/config/database.php index 99492b17..365f4bc8 100644 --- a/config/database.php +++ b/config/database.php @@ -64,7 +64,7 @@ return [ 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, - 'strict' => true, + 'strict' => false, // setting this to true will cause IncreaseStringColumnsLength migration to fail 'engine' => null, 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),