salix/db/versions/.archive/10585-pinkMedeola/06-routeLog.sql

8 lines
461 B
MySQL
Raw Permalink Normal View History

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` ;