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

13 lines
318 B
SQL

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