ALTER TABLE HISTXMLNFE DROP CONSTRAINT CKC_IDSTATUS_HIST
/
ALTER TABLE HISTXMLNFE DROP CONSTRAINT CKC_HISTXMLNFE_IDSTATUS
/
ALTER TABLE HISTXMLNFE ADD CONSTRAINT CKC_IDSTATUS_HIST CHECK (IDSTATUS IN ('S','N','X','B'))
/