2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`entry_beforeDelete`
|
|
|
|
BEFORE DELETE ON `entry`
|
|
|
|
FOR EACH ROW
|
|
|
|
BEGIN
|
2024-03-25 07:47:06 +00:00
|
|
|
CALL entry_checkBooked(OLD.id);
|
2024-01-15 11:31:03 +00:00
|
|
|
DELETE FROM buy WHERE entryFk = OLD.id;
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|