DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`zoneIncluded_beforeUpdate`
	BEFORE UPDATE ON `zoneIncluded`
	FOR EACH ROW
BEGIN
	SET NEW.editorFk = account.myUser_getId();

    -- Inserta en vn_schedules para ejecutar el procedure de 'zone_getCollisions'

    INSERT IGNORE INTO `util`.`vn_schedules`(`schema`, `procedure`)
        VALUES
            ('vn', 'zone_getCollisions');
END$$
DELIMITER ;
