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