2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`entry_beforeDelete`
|
2024-01-15 11:31:03 +00:00
|
|
|
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 ;
|