-- liquibase formatted sql
-- changeset cyril:rename_escalation_log

ALTER TABLE `escalation_log`
    DROP FOREIGN KEY `FK_SUPERVISION_APPROVAL_LOG_ON_PERSONINCHARGE`;
ALTER TABLE `escalation_log`
    CHANGE COLUMN `personInCharge` `handlerId` INT NOT NULL ;
ALTER TABLE `escalation_log`
    ADD CONSTRAINT `FK_SUPERVISION_APPROVAL_LOG_ON_PERSONINCHARGE`
        FOREIGN KEY (`handlerId`)
            REFERENCES `user` (`id`);
