salix/db/versions/.archive/10585-pinkMedeola/02-claimLog.sql

8 lines
556 B
MySQL
Raw Normal View History

ALTER TABLE `vn`.`claimLog`
CHANGE COLUMN `changedModel` `changedModel` ENUM('Claim', 'ClaimBeginning','ClaimState', 'ClaimDevelopment', 'ClaimDms', 'ClaimEnd', 'ClaimObservation') NOT NULL DEFAULT 'Claim',
MODIFY COLUMN changedModelId INT(11) NOT NULL,
MODIFY COLUMN oldInstance JSON NULL,
MODIFY COLUMN newInstance JSON NULL,
ADD INDEX IF NOT EXISTS `claimLog_changedModel` (`changedModel` ASC, `changedModelId` ASC, `creationDate` ASC),
ADD INDEX IF NOT EXISTS `claimLog_claimLog` (`originFk` ASC, `creationDate` ASC),
DROP INDEX IF EXISTS `originFk` ;