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 ;
|