salix/db/routines/vn/triggers/saleGroupDetail_afterDelete...

13 lines
332 B
MySQL
Raw Permalink Normal View History

2024-09-03 06:17:27 +00:00
DELIMITER $$
2024-10-01 06:51:03 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`saleGroupDetail_afterDelete`
2024-09-03 06:17:27 +00:00
AFTER DELETE ON `saleGroupDetail`
FOR EACH ROW
BEGIN
INSERT INTO saleGroupLog
SET `action` = 'delete',
`changedModel` = 'SaleGroupDetail',
`changedModelId` = OLD.id,
`userFk` = account.myUser_getId();
END$$
DELIMITER ;