--ABS-129796 BM6 - DV for initial deliveryABS-135627

--DELIVERYVARIATIONS

ALTER TABLE DELIVERYVARIATIONS
DROP CONSTRAINT CHK_DELIVERYVARIATIONS_ORIGIN;

ALTER TABLE DELIVERYVARIATIONS
ADD CONSTRAINT CHK_DELIVERYVARIATIONS_ORIGIN CHECK ( ORIGIN IN (1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13));

COMMENT ON COLUMN DELIVERYVARIATIONS.ORIGIN IS 'Origin of variation 
                                                Possible values: 
                                                1 = Soil count 
                                                2 = Stock count 
                                                3 = Manual entry 
                                                4 = Packing note 
                                                5 = Delivery note 
                                                6 = Electronic order 
                                                7 = Replacement 
                                                8 = Settlement 
                                                11 = Reduction 
                                                12 = BM6 Ordering 
                                                13 = BM6 First Deliveries';
