salix/db/routines/account/triggers/mailForward_afterDelete.sql

13 lines
327 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailForward_afterDelete`
AFTER DELETE ON `mailForward`
FOR EACH ROW
BEGIN
INSERT INTO userLog
SET `action` = 'delete',
`changedModel` = 'MailForward',
`changedModelId` = OLD.account,
`userFk` = account.myUser_getId();
END$$
DELIMITER ;