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 ;