Referencing wrong table

This commit is contained in:
Brian Haley committed 2019-11-12 22:36:22 -05:00
1 parent 66ea7c5b32
commit df5edb5d94
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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)
);
+1 -1
View File
@@ -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)
);