13 lines
341 B
SQL
13 lines
341 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemMinimumQuantity_afterDelete`
|
|
AFTER DELETE ON `itemMinimumQuantity`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
INSERT INTO itemLog
|
|
SET `action` = 'delete',
|
|
`changedModel` = 'ItemMinimumQuantity',
|
|
`changedModelId` = OLD.id,
|
|
`userFk` = account.myUser_getId();
|
|
END$$
|
|
DELIMITER ;
|