-- ABS-33950/ ABS-46329

ALTER TABLE CURRENCYEXCHANGERATE
  DROP CONSTRAINT CURRENCYEXCHANGERATE_CHECK1;

ALTER TABLE CURRENCYEXCHANGERATE
  ADD CONSTRAINT CURRENCYEXCHANGERATE_CHECK1
  CHECK ((BASECURRENCY_ID = EXCHANGECURRENCY_ID AND EXCHANGERATE = 1) OR (BASECURRENCY_ID <> EXCHANGECURRENCY_ID));