diff --git a/example_data/db_setup.py b/example_data/db_setup.py index 675a38d..e287a34 100644 --- a/example_data/db_setup.py +++ b/example_data/db_setup.py @@ -66,8 +66,8 @@ dqistech INTEGER NOT NULL, dqisrel INTEGER NOT NULL, source TEXT, - FOREIGN KEY(comp1) REFERENCES compartments(fulllabel), - FOREIGN KEY(comp2) REFERENCES compartments(fulllabel), + FOREIGN KEY(comp1) REFERENCES compartments(name), + FOREIGN KEY(comp2) REFERENCES compartments(name), FOREIGN KEY(mat) REFERENCES materials(name) );""") @@ -102,7 +102,7 @@ dqistech INTEGER NOT NULL, dqisrel INTEGER NOT NULL, source TEXT, - FOREIGN KEY(comp) REFERENCES compartments(fulllabel), + FOREIGN KEY(comp) REFERENCES compartments(name), FOREIGN KEY(mat) REFERENCES materials(id) );""") @@ -131,7 +131,7 @@ comp TEXT, year INTEGER, value DOUBLE, - FOREIGN KEY(comp) REFERENCES compartments(fulllabel) + FOREIGN KEY(comp) REFERENCES compartments(name) );""") # import table