Создать таблицу с ошибкой
--
-- Constraints for table `comment`
--
ALTER TABLE `comment`
ADD CONSTRAINT `c_fk_comment_product_id` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`) ON DELETE SET NULL ON UPDATE SET NULL;
Mohammad Kazemnasab