salix/db/routines/vn/triggers/claimDms_afterDelete.sql

13 lines
314 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`claimDms_afterDelete`
AFTER DELETE ON `claimDms`
FOR EACH ROW
BEGIN
INSERT INTO claimLog
SET `action` = 'delete',
`changedModel` = 'ClaimDms',
`changedModelId` = OLD.claimFk,
`userFk` = account.myUser_getId();
END$$
DELIMITER ;