From df5edb5d948ef9d4ccdcdee4a9f583679a387a2c Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 4 Sep 2019 19:30:11 -0400 Subject: [PATCH] Referencing wrong table --- schema/actions.sql | 4 ++-- schema/ammunition.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/actions.sql b/schema/actions.sql index 5159245..889cab7 100644 --- a/schema/actions.sql +++ b/schema/actions.sql @@ -40,7 +40,7 @@ CREATE TABLE actioncategories_sourceentries ( ,sourceentry_id INTEGER NOT NULL ,UNIQUE (id, actioncategories_id, soruceentry_id), ,FOREIGN KEY (actioncategories_id) REFERENCES actioncategories(actioncategories_id) - ,FOREIGN KEY (sourceentry_id) REFERENCES sourceentry(sourceentry_id) + ,FOREIGN KEY (sourceentry_id) REFERENCES sourceentries(sourceentry_id) ); -- Joining table -- @@ -50,5 +50,5 @@ CREATE TABLE actions_sourceentries ( ,sourceentry_id INTEGER NOT NULL ,UNIQUE (id, actions_id, soruceentry_id), ,FOREIGN KEY (actions_id) REFERENCES actions(actions_id) - ,FOREIGN KEY (sourceentry_id) REFERENCES sourceentry(sourceentry_id) + ,FOREIGN KEY (sourceentry_id) REFERENCES sourceentries(sourceentry_id) ); \ No newline at end of file diff --git a/schema/ammunition.sql b/schema/ammunition.sql index 8e2c291..498a431 100644 --- a/schema/ammunition.sql +++ b/schema/ammunition.sql @@ -19,5 +19,5 @@ CREATE TABLE ammunition_sourceentries ( ,sourceentry_id INTEGER NOT NULL ,UNIQUE (id, ammunition_id, sourceentry_id), ,FOREIGN KEY (ammunition_id) REFERENCES ammunition(ammunition_id) - ,FOREIGN KEY (sourceentry_id) REFERENCES sourceentry(sourceentry_id) + ,FOREIGN KEY (sourceentry_id) REFERENCES sourceentries(sourceentry_id) ); \ No newline at end of file