--Order 20012138.260

ALTER TABLE CUSTOMERBUDGETDEFINITION MODIFY (BUDGETUNIT_ID NUMBER NULL);

ALTER TABLE CUSTOMERBUDGETDEFINITION 
      ADD CONSTRAINT CHCK_BUDGETTYPE CHECK ((BUDGETTYPE = 0 AND BUDGETUNIT_ID IS NOT NULL)
						or (BUDGETTYPE = 1 AND BUDGETUNIT_ID IS NULL));
