-mmove to new sources way in monsters
parent
53e3d61f01
commit
01094d4a16
|
@ -21,8 +21,9 @@ PRAGMA foreign_keys = ON;
|
||||||
CREATE TABLE monsters (
|
CREATE TABLE monsters (
|
||||||
monsters_id INTEGER PRIMARY KEY,
|
monsters_id INTEGER PRIMARY KEY,
|
||||||
is_comty_use BOOLEAN NOT NULL, -- false = no community use policy req
|
is_comty_use BOOLEAN NOT NULL, -- false = no community use policy req
|
||||||
sources_id INTEGER,
|
sources_id INTEGER, -- old style source entries
|
||||||
sources_pages TEXT,
|
sources_pages TEXT, -- old style source entries
|
||||||
|
sourceentries_id INTEGER, -- new style source entries
|
||||||
-- monstercategories_id INTEGER, -- Humanoid etc..
|
-- monstercategories_id INTEGER, -- Humanoid etc..
|
||||||
"name" TEXT NOT NULL UNIQUE,
|
"name" TEXT NOT NULL UNIQUE,
|
||||||
"level" INTEGER,
|
"level" INTEGER,
|
||||||
|
@ -50,7 +51,8 @@ CREATE TABLE monsters (
|
||||||
FOREIGN KEY (alignments_id) REFERENCES alignments(alignments_id),
|
FOREIGN KEY (alignments_id) REFERENCES alignments(alignments_id),
|
||||||
-- FOREIGN KEY (monstercategories_id) REFERENCES monstercategories(monstercategories_id),
|
-- FOREIGN KEY (monstercategories_id) REFERENCES monstercategories(monstercategories_id),
|
||||||
FOREIGN KEY (sizes_id) REFERENCES sizes(sizes_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 (
|
CREATE TABLE monsterflavortexttypes (
|
||||||
|
|
|
@ -29,7 +29,7 @@ CREATE TABLE monsters_sourceentries (
|
||||||
monsters_id INTEGER NOT NULL,
|
monsters_id INTEGER NOT NULL,
|
||||||
sourceentries_id INTEGER NOT NULL,
|
sourceentries_id INTEGER NOT NULL,
|
||||||
FOREIGN KEY (monsters_id) REFERENCES monsters(monsters_id),
|
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
|
-- TODO add in new many-to-many tables for the various things we want to have sources be listed this way
|
||||||
|
|
Loading…
Reference in New Issue