diff --git a/openbis/source/sql/generic/071/schema-071.sql b/openbis/source/sql/generic/071/schema-071.sql index cfed38f4314aa2500762ce30dfe366b45fa1f849..b249ced5a45c2ac6feb2edaaa279031effbc3445 100644 --- a/openbis/source/sql/generic/071/schema-071.sql +++ b/openbis/source/sql/generic/071/schema-071.sql @@ -204,7 +204,6 @@ ALTER TABLE DATA ADD CONSTRAINT DATA_SAMP_FK FOREIGN KEY (SAMP_ID) REFERENCES SA ALTER TABLE DATA ADD CONSTRAINT DATA_DAST_FK FOREIGN KEY (DAST_ID) REFERENCES DATA_STORES(ID); ALTER TABLE DATA ADD CONSTRAINT DATA_CTNR_FK FOREIGN KEY (CTNR_ID) REFERENCES DATA(ID); ALTER TABLE DATA ADD CONSTRAINT DATA_PERS_FK FOREIGN KEY (PERS_ID_REGISTERER) REFERENCES PERSONS(ID); -ALTER TABLE DATA ADD CONSTRAINT DATA_CTNR_PARENT_FK FOREIGN KEY (CTNR_PARENT_ID) REFERENCES DATA(ID); ALTER TABLE DATA_SET_RELATIONSHIPS ADD CONSTRAINT DSRE_DATA_FK_CHILD FOREIGN KEY (DATA_ID_CHILD) REFERENCES DATA(ID); ALTER TABLE DATA_SET_RELATIONSHIPS ADD CONSTRAINT DSRE_DATA_FK_PARENT FOREIGN KEY (DATA_ID_PARENT) REFERENCES DATA(ID); ALTER TABLE sample_relationships ADD CONSTRAINT sare_data_fk_child FOREIGN KEY (sample_id_child) REFERENCES samples(id) ON DELETE CASCADE;