salix/db/routines/vn/triggers/itemShelving_afterInsert.sql

27 lines
486 B
MySQL
Raw Normal View History

DELIMITER $$
2024-04-08 07:54:23 +00:00
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_afterInsert`
AFTER INSERT ON `itemShelving`
FOR EACH ROW
2024-04-03 05:04:12 +00:00
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`,
2024-04-03 05:04:12 +00:00
NEW.packing,
NEW.available);
END$$
DELIMITER ;