-- liquibase formatted sql

-- changeset cyril:update inventory

ALTER TABLE `inventory`
    DROP FOREIGN KEY `FK_INVENTORY_TO_CURRENCY_ON_CURRENCY_ID`;
ALTER TABLE `inventory`
    CHANGE COLUMN `currencyId` `currencyId` INT NULL ;
ALTER TABLE `inventory`
    ADD CONSTRAINT `FK_INVENTORY_TO_CURRENCY_ON_CURRENCY_ID`
        FOREIGN KEY (`currencyId`)
            REFERENCES `currency` (`id`);
