ALTER TABLE `vn`.`routeLog` CHANGE COLUMN `changedModel` `changedModel` ENUM('Route') NOT NULL DEFAULT 'Route', MODIFY COLUMN changedModelId INT(11) NOT NULL, MODIFY COLUMN oldInstance JSON NULL, MODIFY COLUMN newInstance JSON NULL, ADD INDEX IF NOT EXISTS `routeLog_changedModel` (`changedModel` ASC, `changedModelId` ASC, `creationDate` ASC), ADD INDEX IF NOT EXISTS `routeLog_originFk` (`originFk` ASC, `creationDate` ASC), DROP INDEX IF EXISTS `originFk` ;