27 lines
486 B
SQL
27 lines
486 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_afterInsert`
|
|
AFTER INSERT ON `itemShelving`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
|
|
INSERT INTO vn.itemShelvingLog(
|
|
itemShelvingFk,
|
|
workerFk,
|
|
accion,
|
|
itemFk,
|
|
shelvingFk,
|
|
visible,
|
|
`grouping`,
|
|
packing,
|
|
available)
|
|
VALUES( NEW.id,
|
|
NEW.userFk,
|
|
'CREA REGISTRO',
|
|
NEW.itemFk,
|
|
NEW.shelvingFk,
|
|
NEW.visible,
|
|
NEW.`grouping`,
|
|
NEW.packing,
|
|
NEW.available);
|
|
END$$
|
|
DELIMITER ; |