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

9 lines
194 B
MySQL
Raw Normal View History

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