From f0a0a227965a50fe4c085378aa5c80cbb1ca138f Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 22 Mar 2020 17:13:02 +0000 Subject: [PATCH] #11 - Disable query 'SET FOREIGN_KEY_CHECKS=0' --- src/Migrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Migrations.php b/src/Migrations.php index 83daed7..fcf250b 100644 --- a/src/Migrations.php +++ b/src/Migrations.php @@ -508,7 +508,7 @@ private static function connectionSetup(array $options): void self::$storage = new $adapter($configArray); if ($database->adapter === 'Mysql') { - self::$storage->query('SET FOREIGN_KEY_CHECKS=0'); + //self::$storage->query('SET FOREIGN_KEY_CHECKS=0'); } if (!self::$storage->tableExists(self::MIGRATION_LOG_TABLE)) {