new tables: sources with data on CRB and BST1, and finished langs data

merge-requests/15/head
James Miller 2019-08-06 17:40:07 -05:00
parent 4f21c576ba
commit 372af8df9f
6 changed files with 50 additions and 1 deletions

View File

@ -35,6 +35,6 @@ VALUES
(108, 2, 'Necril', 'Ghouls, intelligent undead'), (108, 2, 'Necril', 'Ghouls, intelligent undead'),
(109, 2, 'Shadowtongue', 'Nidalese, Shadow Plane creatures'), (109, 2, 'Shadowtongue', 'Nidalese, Shadow Plane creatures'),
(110, 2, 'Terran', 'Earth elemental creatures'), (110, 2, 'Terran', 'Earth elemental creatures'),
-- Secret languages -- Secret language s
(200, 3, 'Druidic', 'Druids'); (200, 3, 'Druidic', 'Druids');

31
data/sources.sql 100644
View File

@ -0,0 +1,31 @@
-- -*- mode:sql sql-product:sqlite -*-
/* TODO Decide on how to format the copyright block text... perhaps with Markdown? */
INSERT INTO sources (sources_id,
sources_full_name,
sources_short_name,
sources_abbrev,
sources_descr,
release_date,
first_party,
ogl_copyright_block)
VALUES
(1,
'Pathfinder Core Rulebook (Second Edition)',
'Core Rulebook',
'CRB',
'Volume containing the rules core rules for players and Game Masters',
'2019-08-01',
1,
'Open Game License v.1.0a (c) 2000, Wizards of the Coast, Inc.; System Reference Document (c) 2000, Wizards of the Coast, Inc.; Authors: Jonathan Tweet, Monte Cook, and Skip Williams, based on material by E. Gary Gygax and Dave Arneson. Pathfinder Core Rulebook (Second Edition) (c) 2019, Paizo, Inc.; Designers: Logan Bonner, Jason Bulmahn, Stephen Radney-MacFarland, and Mark Seifter.'),
(2,
'Pathfinder Bestiary (Second Edition)',
'Bestiary',
'BST1',
'TODO',
'2019-08-01',
1,
'Daemon, Guardian from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Ian McDowall. Dark Creeper from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Rik Shepard. Dark Stalker from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Simon Muth. Dragon, Faerie from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Brian Jaeger and Gary Gygax. Genie, Marid from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Gary Gygax. Mite from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Ian Livingstone and Mark Barnes. Pathfinder Bestiary (Second Edition) © 2019, Paizo Inc.; Authors: Alexander Augunas, Logan Bonner, Jason Bulmahn, John Compton, Paris Crenshaw, Adam Daigle, Eleanor Ferron, Leo Glass, Thurston Hillman, James Jacobs, Jason Keeley, Lyz Liddell, Ron Lundeen, Robert G. McCreary, Tim Nightengale, Stephen Radney-MacFarland, Alex Riggs, David N. Ross, Michael Sayre, Mark Seifter, Chris S. Sims, Jeffrey Swank, Jason Tondro, Tonya Woldridge, and Linda Zayas-Palmer.');

View File

@ -3,6 +3,8 @@ del pf2.db
:: Loading schema :: Loading schema
sqlite3 pf2.db < schema/abilityscores.sql sqlite3 pf2.db < schema/abilityscores.sql
sqlite3 pf2.db < schema/sizes.sql
sqlite3 pf2.db < schema/sources.sql
sqlite3 pf2.db < schema/langs.sql sqlite3 pf2.db < schema/langs.sql
sqlite3 pf2.db < schema/traits.sql sqlite3 pf2.db < schema/traits.sql
sqlite3 pf2.db < schema/feats.sql sqlite3 pf2.db < schema/feats.sql

View File

@ -4,6 +4,8 @@ echo 'schema/abilityscores.sql'
sqlite3 pf2.db < schema/abilityscores.sql sqlite3 pf2.db < schema/abilityscores.sql
echo 'schema/sizes.sql' echo 'schema/sizes.sql'
sqlite3 pf2.db < schema/sizes.sql sqlite3 pf2.db < schema/sizes.sql
echo 'schema/sources.sql'
sqlite3 pf2.db < schema/sources.sql
echo 'schema/langs.sql' echo 'schema/langs.sql'
sqlite3 pf2.db < schema/langs.sql sqlite3 pf2.db < schema/langs.sql
echo 'schema/traits.sql' echo 'schema/traits.sql'

View File

@ -10,6 +10,8 @@ CREATE TABLE langs (
lang TEXT NOT NULL UNIQUE, lang TEXT NOT NULL UNIQUE,
speakers TEXT NOT NULL UNIQUE, speakers TEXT NOT NULL UNIQUE,
rarity_id INTEGER NOT NULL, rarity_id INTEGER NOT NULL,
src_book INTEGER NOT NULL,
src_pages TEXT NOT NULL,
FOREIGN KEY (rarity_id) REFERENCES langsrarity(rarity_id) FOREIGN KEY (rarity_id) REFERENCES langsrarity(rarity_id)
); );

12
schema/sources.sql 100644
View File

@ -0,0 +1,12 @@
-- -*- mode:sql sql-product:sqlite -*-
CREATE TABLE sources (
sources_id INTEGER PRIMARY KEY,
sources_full_name TEXT NOT NULL UNIQUE,
sources_short_name TEXT NOT NULL UNIQUE,
sources_abbrev TEXT NOT NULL UNIQUE,
sources_descr TEXT NOT NULL UNIQUE,
release_date TEXT NOT NULL,
first_party BOOLEAN NOT NULL,
ogl_copyright_block TEXT NOT NULL
);