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