-- liquibase formatted sql
-- changeset cyril:update_job_order_bom_material

ALTER TABLE `job_order_bom_material`
    DROP FOREIGN KEY `FK_JOBM_TO_UOM_CONVERSION_ON_UOM_ID`;
ALTER TABLE `job_order_bom_material`
    CHANGE COLUMN `uomId` `uomId` INT NULL ;
ALTER TABLE `job_order_bom_material`
    ADD CONSTRAINT `FK_JOBM_TO_UOM_CONVERSION_ON_UOM_ID`
        FOREIGN KEY (`uomId`)
            REFERENCES `uom_conversion` (`id`);
