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