8 lines
556 B
MySQL
8 lines
556 B
MySQL
|
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` ;
|