--Order 20015474.70

ALTER TABLE RAGGEDITEM ADD (ISSUEDBYWORKORDER_ID NUMBER NULL);

CREATE INDEX XIF21RAGGEDITEM ON RAGGEDITEM (ISSUEDBYWORKORDER_ID);

ALTER TABLE RAGGEDITEM
  ADD CONSTRAINT RAGGEDITEM_ISSUEDBYWO FOREIGN KEY (ISSUEDBYWORKORDER_ID)
  REFERENCES WORKORDER (WORKORDER_ID) ON DELETE SET NULL;