--Order 20015066 (modification due to issue on AUS database, column was already added with a special script on AUS)

ALTER TABLE PURCHASEORDERHEADER
  MODIFY (ERPEXPORT DEFAULT 'N');

ALTER TABLE PURCHASEORDERHEADER MODIFY (ERPEXPORT NOT NULL);

ALTER TABLE PURCHASEORDERHEADER DROP CONSTRAINT YN_ValidationField215;

ALTER TABLE PURCHASEORDERHEADER ADD CONSTRAINT YN_ValidationField215 CHECK (ERPEXPORT IN ('Y','N','D'));