fix spells and actions to link up with a actioncosts_id FK in spells

This commit is contained in:
jrmiller82 committed 2019-08-12 22:41:25 -05:00
1 parent dbffbcabf0
commit f36c4856f9
4 files changed
+37 -9

No files matched your search

+2 -1
View File
@@ -2,7 +2,8 @@
CREATE TABLE actioncosts (
actioncosts_id INTEGER PRIMARY KEY,
name TEXT NOT NULL UNIQUE
name TEXT NOT NULL UNIQUE,
abbr TEXT NOT NULL UNIQUE
);
+2
View File
@@ -48,6 +48,8 @@ CREATE TABLE spells (
area_text TEXT, -- TODO need to figure out some sort of programmatic representation for this too
spelltargets_id INTEGER,
nethysurl TEXT, -- scraped from github repo
actioncosts_id INTEGER,
FOREIGN KEY (actioncosts_id) REFERENCES actioncosts(actioncosts_id),
FOREIGN KEY (sources_id) REFERENCES sources(sources_id),
FOREIGN KEY (spelltypes_id) REFERENCES spelltypes(spelltypes_id),
FOREIGN KEY (spelltargets_id) REFERENCES spelltargets(spelltargets_id)