15 lines
417 B
MySQL
15 lines
417 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_AFTER_UPDATE`
|
||
|
AFTER UPDATE ON `itemShelving`
|
||
|
FOR EACH ROW
|
||
|
INSERT INTO itemShelvingLog
|
||
|
SET itemShelvingFk = NEW.id,
|
||
|
workerFk = account.myUser_getId(),
|
||
|
accion = 'CAMBIO',
|
||
|
itemFk = NEW.itemFk,
|
||
|
shelvingFk = NEW.shelvingFk,
|
||
|
visible = NEW.visible,
|
||
|
`grouping` = NEW.`grouping`,
|
||
|
packing = NEW.packing$$
|
||
|
DELIMITER ;
|