salix/db/routines/vn/triggers/saleGroup_afterDelete.sql

13 lines
314 B
MySQL
Raw Normal View History

2024-01-25 16:33:54 +00:00
DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`saleGroup_afterDelete`
2024-01-25 16:33:54 +00:00
AFTER DELETE ON `saleGroup`
FOR EACH ROW
BEGIN
2024-09-03 06:17:27 +00:00
INSERT INTO saleGroupLog
2024-01-25 16:33:54 +00:00
SET `action` = 'delete',
`changedModel` = 'SaleGroup',
`changedModelId` = OLD.id,
`userFk` = account.myUser_getId();
END$$
DELIMITER ;