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

9 lines
192 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`news_afterInsert`
AFTER INSERT ON `news`
FOR EACH ROW
BEGIN
CALL image_ref('news', NEW.image);
END$$
DELIMITER ;