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

13 lines
312 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`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 ;