-mmove to new sources way in monsters

merge-requests/35/merge
James R Miller 2019-08-18 20:06:28 -05:00
parent 53e3d61f01
commit 01094d4a16
2 changed files with 6 additions and 4 deletions

View File

@ -21,8 +21,9 @@ PRAGMA foreign_keys = ON;
CREATE TABLE monsters (
monsters_id INTEGER PRIMARY KEY,
is_comty_use BOOLEAN NOT NULL, -- false = no community use policy req
sources_id INTEGER,
sources_pages TEXT,
sources_id INTEGER, -- old style source entries
sources_pages TEXT, -- old style source entries
sourceentries_id INTEGER, -- new style source entries
-- monstercategories_id INTEGER, -- Humanoid etc..
"name" TEXT NOT NULL UNIQUE,
"level" INTEGER,
@ -50,7 +51,8 @@ CREATE TABLE monsters (
FOREIGN KEY (alignments_id) REFERENCES alignments(alignments_id),
-- FOREIGN KEY (monstercategories_id) REFERENCES monstercategories(monstercategories_id),
FOREIGN KEY (sizes_id) REFERENCES sizes(sizes_id),
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
FOREIGN KEY (sources_id) REFERENCES sources(sources_id),
FOREIGN KEY (sourceentries_id) REFERENCES sourceentries(sourceentries_id)
);
CREATE TABLE monsterflavortexttypes (

View File

@ -29,7 +29,7 @@ CREATE TABLE monsters_sourceentries (
monsters_id INTEGER NOT NULL,
sourceentries_id INTEGER NOT NULL,
FOREIGN KEY (monsters_id) REFERENCES monsters(monsters_id),
FOREIGN KEY (sourceentries_id_id) REFERENCES sourceentries_id(sourceentries_id_id)
FOREIGN KEY (sourceentries_id) REFERENCES sourceentries(sourceentries_id)
);
-- TODO add in new many-to-many tables for the various things we want to have sources be listed this way