-- liquibase formatted sql
-- changeset codex:add_uomidm18_to_po_line
-- preconditions onFail:MARK_RAN
-- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'purchase_order_line' AND COLUMN_NAME = 'uomIdM18'

ALTER TABLE `purchase_order_line`
    ADD COLUMN `uomIdM18` INT NULL AFTER `uomId`,
    ADD CONSTRAINT `FK_PURCHASE_ORDER_LINE_ON_UOMIDM18` FOREIGN KEY (`uomIdM18`) REFERENCES `uom_conversion` (`id`);
