From 8507e5298dc06f0bf98188144c139383b3c3df17 Mon Sep 17 00:00:00 2001 From: Delphine <46021476+delphinekw@users.noreply.github.com> Date: Thu, 24 Sep 2020 19:03:57 +0200 Subject: [PATCH] Correct error in database setup --- example_data/db_setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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