mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
fix spells and actions to link up with a actioncosts_id FK in spells
This commit is contained in:
1 parent
dbffbcabf0
commit
f36c4856f9
4 files changed
+37
-9
No files matched your search
+2
-1
@@ -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
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user