9 lines
520 B
SQL
9 lines
520 B
SQL
ALTER TABLE `vn`.`zoneLog`
|
|
CHANGE COLUMN `changedModel` `changedModel` ENUM('Zone', 'ZoneEvent', 'ZoneExclusion', 'ZoneIncluded', 'ZoneWarehouse') NOT NULL DEFAULT 'Zone',
|
|
MODIFY COLUMN changedModelId INT(11) NOT NULL,
|
|
MODIFY COLUMN oldInstance JSON NULL,
|
|
MODIFY COLUMN newInstance JSON NULL,
|
|
ADD INDEX IF NOT EXISTS `zoneLog_changedModel` (`changedModel` ASC, `changedModelId` ASC, `creationDate` ASC),
|
|
ADD INDEX IF NOT EXISTS `zoneLog_originFk` (`originFk` ASC, `creationDate` ASC),
|
|
DROP INDEX IF EXISTS `originFk` ;
|
|
; |