From 32a9b7bcfef7e255a3a407ccb169c7ce57882891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20V=C6=B0=C6=A1ng?= <34091632+hardingadonis@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:14:24 +0700 Subject: [PATCH] Update setup.sql --- database/setup.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database/setup.sql b/database/setup.sql index 490bb2f..dba2051 100644 --- a/database/setup.sql +++ b/database/setup.sql @@ -7,6 +7,8 @@ -- Phiên bản máy phục vụ: 10.4.28-MariaDB -- Phiên bản PHP: 8.2.4 +SET FOREIGN_KEY_CHECKS = 0; + SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; @@ -380,6 +382,8 @@ ALTER TABLE `product` ADD CONSTRAINT `FK7l29ekt1x29jup80y2iigimyy` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`); COMMIT; +SET FOREIGN_KEY_CHECKS = 0; + /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;