DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`roadmap_beforeInsert`
	BEFORE INSERT ON `roadmap`
	FOR EACH ROW
BEGIN
	SET NEW.editorFk = account.myUser_getId();
	IF NEW.etd > NEW.eta THEN
		CALL util.throw('Departure time can not be after arrival time');
	END IF;
	SET NEW.name = UCASE(NEW.name);
END$$
DELIMITER ;