Referencing wrong table
parent
66ea7c5b32
commit
df5edb5d94
|
@ -40,7 +40,7 @@ CREATE TABLE actioncategories_sourceentries (
|
||||||
,sourceentry_id INTEGER NOT NULL
|
,sourceentry_id INTEGER NOT NULL
|
||||||
,UNIQUE (id, actioncategories_id, soruceentry_id),
|
,UNIQUE (id, actioncategories_id, soruceentry_id),
|
||||||
,FOREIGN KEY (actioncategories_id) REFERENCES actioncategories(actioncategories_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 --
|
-- Joining table --
|
||||||
|
@ -50,5 +50,5 @@ CREATE TABLE actions_sourceentries (
|
||||||
,sourceentry_id INTEGER NOT NULL
|
,sourceentry_id INTEGER NOT NULL
|
||||||
,UNIQUE (id, actions_id, soruceentry_id),
|
,UNIQUE (id, actions_id, soruceentry_id),
|
||||||
,FOREIGN KEY (actions_id) REFERENCES actions(actions_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)
|
||||||
);
|
);
|
|
@ -19,5 +19,5 @@ CREATE TABLE ammunition_sourceentries (
|
||||||
,sourceentry_id INTEGER NOT NULL
|
,sourceentry_id INTEGER NOT NULL
|
||||||
,UNIQUE (id, ammunition_id, sourceentry_id),
|
,UNIQUE (id, ammunition_id, sourceentry_id),
|
||||||
,FOREIGN KEY (ammunition_id) REFERENCES ammunition(ammunition_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)
|
||||||
);
|
);
|
Loading…
Reference in New Issue