-- liquibase formatted sql
-- changeset cyril:update_item

ALTER TABLE `items`
    ADD COLUMN `qcCategoryId` INT NULL AFTER `categoryId`,
    ADD INDEX `FK_ITEM_ON_QCCATEGORYID` (`qcCategoryId` ASC) VISIBLE;
;
ALTER TABLE `items`
    ADD CONSTRAINT `FK_ITEM_ON_QCCATEGORYID`
        FOREIGN KEY (`qcCategoryId`)
            REFERENCES `qc_category` (`id`)
            ON DELETE RESTRICT
            ON UPDATE RESTRICT;