16 lines
403 B
MySQL
16 lines
403 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_BEFORE_DELETE`
|
||
|
BEFORE DELETE ON `itemShelving`
|
||
|
FOR EACH ROW
|
||
|
INSERT INTO vn.itemShelvingLog(itemShelvingFk,
|
||
|
workerFk,
|
||
|
accion,
|
||
|
shelvingFk,
|
||
|
itemFk)
|
||
|
VALUES( OLD.id,
|
||
|
account.myUser_getId(),
|
||
|
'ELIMINADO',
|
||
|
OLD.shelvingFk,
|
||
|
OLD.itemFk)$$
|
||
|
DELIMITER ;
|