salix/db/versions/.archive/10585-pinkMedeola/13-roleLog.sql

10 lines
464 B
SQL

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