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

12 lines
289 B
MySQL
Raw Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`itemShelving_beforeInsert`
BEFORE INSERT ON `itemShelving`
FOR EACH ROW
BEGIN
2024-01-25 16:33:54 +00:00
SET NEW.editorFk = account.myUser_getId();
SET NEW.userFk = account.myUser_getId();
2024-04-03 05:04:12 +00:00
SET NEW.available = NEW.visible;
END$$
DELIMITER ;