--ABS-129266
ALTER TABLE EMBLEMHISTORY
  DROP CONSTRAINT EMBLEMHISTORY_EMBLEMTEMPLATELI;

ALTER TABLE EMBLEMHISTORY
ADD CONSTRAINT EMBLEMHISTORY_EMBLEMTEMPLATELI FOREIGN KEY (EMBLEMTEMPLATELINE_ID) REFERENCES EMBLEMTEMPLATELINE (EMBLEMTEMPLATELINE_ID) ON DELETE SET NULL;