ALTER TABLE vn.roadmap
	COMMENT='Rutas troncales (trailers)',
	MODIFY COLUMN m3 int(10) unsigned DEFAULT NULL NULL COMMENT 'Capacidad máxima del remolque',
	MODIFY COLUMN trailerPlate varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL,
	MODIFY COLUMN etd datetime NOT NULL COMMENT 'Tiempo estimado de salida',
	MODIFY COLUMN `name` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NULL,
	MODIFY COLUMN driver1Fk int(10) unsigned DEFAULT NULL NULL AFTER driverName,
	MODIFY COLUMN driver2Fk int(10) unsigned DEFAULT NULL NULL AFTER driver1Fk,
	ADD eta datetime DEFAULT NULL NULL COMMENT 'Tiempo estimado de llegada' AFTER etd,
	ADD roadmapAddressFk int(11) DEFAULT NULL NULL AFTER `name`,
	ADD dollyPlate varchar(10) DEFAULT NULL AFTER trailerPlate,
	ADD tugPlate varchar(10) DEFAULT NULL AFTER dollyPlate,
	ADD driverChangeName varchar(45) DEFAULT NULL AFTER driver2Fk,
	ADD driverChangeFk int(10) unsigned DEFAULT NULL NULL AFTER driverChangeName;

-- Separamos los CHANGE por que si no arriba no se aplican
ALTER TABLE vn.roadmap
	CHANGE userFk editorFk int(10) unsigned DEFAULT NULL NULL AFTER m3;

CREATE INDEX roadmap_etd_IDX USING BTREE ON vn.roadmap (etd);
