13 lines
310 B
SQL
13 lines
310 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`supplier_afterDelete`
|
|
AFTER DELETE ON `supplier`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
INSERT INTO supplierLog
|
|
SET `action` = 'delete',
|
|
`changedModel` = 'Supplier',
|
|
`changedModelId` = OLD.id,
|
|
`userFk` = account.myUser_getId();
|
|
END$$
|
|
DELIMITER ;
|