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