salix/db/routines/vn/triggers/itemShelving _afterDelete.sql

13 lines
324 B
MySQL
Raw Normal View History

2024-01-25 16:33:54 +00:00
DELIMITER $$
2024-07-12 07:03:37 +00:00
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_afterDelete`
2024-01-25 16:33:54 +00:00
AFTER DELETE ON `itemShelving`
FOR EACH ROW
BEGIN
INSERT INTO shelvingLog
SET `action` = 'delete',
`changedModel` = 'itemShelving',
`changedModelId` = OLD.id,
`userFk` = account.myUser_getId();
END$$
DELIMITER ;