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

11 lines
201 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` TRIGGER `vn`.`machine_beforeInsert`
BEFORE INSERT ON `machine`
FOR EACH ROW
BEGIN
SET NEW.workerFk = vn.getUser();
END$$
DELIMITER ;