--todo 21882.30

ALTER TABLE DWH_SETTINGS
  DROP CONSTRAINT FISCALTYPE_VALID;
ALTER TABLE DWH_SETTINGS
  DROP CONSTRAINT PERIODTYPE_VALID;

ALTER TABLE DWH_SETTINGS
  ADD CONSTRAINT FISCALTYPE_VALID
  CHECK (FISCAL_TYPE IN (445, 544, 444, 454, 0));
ALTER TABLE DWH_SETTINGS
  ADD CONSTRAINT PERIODTYPE_VALID
  CHECK (PERIOD_TYPE IN (445, 544, 444, 454));