-- liquibase formatted sql
-- changeset cyril:update_stock_take_line

ALTER TABLE `stock_take_line`
    DROP FOREIGN KEY `FK_STOCK_TAKE_LINE_ON_INVENTORYLOTLINEID`;
ALTER TABLE `stock_take_line`
    CHANGE COLUMN `inventoryLotLineId` `inventoryLotLineId` INT NULL ;
ALTER TABLE `stock_take_line`
    ADD CONSTRAINT `FK_STOCK_TAKE_LINE_ON_INVENTORYLOTLINEID`
        FOREIGN KEY (`inventoryLotLineId`)
            REFERENCES `inventory_lot_line` (`id`);
