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

7 lines
228 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` TRIGGER `vn`.`ektEntryAssign_afterInsert`
AFTER INSERT ON `ektEntryAssign`
FOR EACH ROW
UPDATE entry SET reference = NEW.`ref` WHERE id = NEW.entryFk$$
DELIMITER ;