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-06-05 13:44:11 +00:00
|
|
|
CALL entry_isEditable(OLD.id);
|
2024-01-15 11:31:03 +00:00
|
|
|
DELETE FROM buy WHERE entryFk = OLD.id;
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|