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`.`itemShelving_afterDelete`
|
2024-01-25 16:33:54 +00:00
|
|
|
AFTER DELETE ON `itemShelving`
|
|
|
|
FOR EACH ROW
|
|
|
|
BEGIN
|
|
|
|
INSERT INTO shelvingLog
|
|
|
|
SET `action` = 'delete',
|
2024-08-09 09:28:30 +00:00
|
|
|
`changedModel` = 'ItemShelving',
|
2024-01-25 16:33:54 +00:00
|
|
|
`changedModelId` = OLD.id,
|
|
|
|
`userFk` = account.myUser_getId();
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|