-- liquibase formatted sql
-- changeset cyril:update_stock_out_line

ALTER TABLE `stock_out_line`
    ADD COLUMN `pickOrderLineId` INT NULL DEFAULT NULL AFTER `stockOutId`,
    ADD INDEX `FK_STOCKOUT_LINE_PICKORDERLINE_ID_idx` (`pickOrderLineId` ASC) VISIBLE;
;
ALTER TABLE `stock_out_line`
    ADD CONSTRAINT `FK_STOCKOUT_LINE_PICKORDERLINE_ID`
        FOREIGN KEY (`pickOrderLineId`)
            REFERENCES `pick_order_line` (`id`)
            ON DELETE NO ACTION
            ON UPDATE NO ACTION;
