salix/db/routines/vn/triggers/supplierAddress_afterDelete...

13 lines
333 B
SQL

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 ;