12 lines
294 B
SQL
12 lines
294 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_beforeUpdate`
|
|
BEFORE UPDATE ON `itemShelving`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
SET NEW.editorFk = account.myUser_getId();
|
|
IF NEW.userFk IS NULL THEN
|
|
SET NEW.userFk = account.myUser_getId();
|
|
END IF;
|
|
END$$
|
|
DELIMITER ;
|