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 */;