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

9 lines
194 B
MySQL
Raw Permalink Normal View History

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 ;