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