salix/db/versions/.archive/10585-pinkMedeola/12-userLog.sql

10 lines
464 B
MySQL
Raw Normal View History

ALTER TABLE `account`.`userLog`
CHANGE COLUMN `changedModel` `changedModel` ENUM('User') NOT NULL DEFAULT 'User',
MODIFY COLUMN changedModelId INT(11) NOT NULL,
MODIFY COLUMN oldInstance JSON NULL,
MODIFY COLUMN newInstance JSON NULL,
ADD INDEX IF NOT EXISTS `userLog_changedModel` (`changedModel` ASC, `changedModelId` ASC, `creationDate` ASC),
ADD INDEX IF NOT EXISTS `userLog_originFk` (`originFk` ASC, `creationDate` ASC),
DROP INDEX IF EXISTS `originFk` ;
;