Skip to content

Commit

Permalink
Correct error in database setup
Browse files Browse the repository at this point in the history
  • Loading branch information
delphinekw authored Sep 24, 2020
1 parent 8b476d8 commit 8507e52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example_data/db_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);""")

Expand Down Expand Up @@ -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)
);""")

Expand Down Expand Up @@ -131,7 +131,7 @@
comp TEXT,
year INTEGER,
value DOUBLE,
FOREIGN KEY(comp) REFERENCES compartments(fulllabel)
FOREIGN KEY(comp) REFERENCES compartments(name)
);""")

# import table
Expand Down

0 comments on commit 8507e52

Please sign in to comment.