9 lines
194 B
MySQL
9 lines
194 B
MySQL
|
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 ;
|