salix/db/routines/hedera/triggers/link_afterDelete.sql

9 lines
194 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`link_afterDelete`
AFTER DELETE ON `link`
FOR EACH ROW
BEGIN
CALL image_unref('link', OLD.image);
END$$
DELIMITER ;