From 0c3649548646aaa211070735a5a5503217a42650 Mon Sep 17 00:00:00 2001 From: James R Miller Date: Sat, 3 Aug 2019 22:08:02 -0500 Subject: [PATCH] fix sql syntax errors --- data/ancestries.sql | 2 +- data/heritages.sql | 2 +- data/traits.sql | 3 +-- schema/ancestries.sql | 7 +++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/data/ancestries.sql b/data/ancestries.sql index 846bbee..5c01dc7 100644 --- a/data/ancestries.sql +++ b/data/ancestries.sql @@ -15,7 +15,7 @@ VALUES (3, 'Gnome', 'TODO', 8, 2, 25, 100, 1, 2), (4, 'Goblin', 'TODO', 6, 2, 25, 98, 16, 1), (5, 'Halfling', 'TODO', 6, 2, 25, 82, 1, 3), - (6, 'Human', 'TODO', 8, 3, 25, 128, 0, 4), + (6, 'Human', 'TODO', 8, 3, 25, 128, 0, 4); /* TODO flesh out the ancestry-trait pairs */ diff --git a/data/heritages.sql b/data/heritages.sql index fa2779b..70632f2 100644 --- a/data/heritages.sql +++ b/data/heritages.sql @@ -19,7 +19,7 @@ VALUES (3, 'Forge Dwarf', 'TODO'), (4, 'Rock Dwarf', 'TODO'), (5, 'Strong-Blooded Dwarf', 'TODO'), - (6, 'Half-Elf', 'Either one of your parents was an elf, or one or both were half-elves. You have pointed ears and other telltale signs of elf heritage. You gain the elf trait and low-light vision. In addition, you can select elf, half-elf, and human feats whenever you gain an ancestry feat.'), + (6, 'Half-Elf', 'Either one of your parents was an elf, or one or both were half-elves. You have pointed ears and other telltale signs of elf heritage. You gain the elf trait and low-light vision. In addition, you can select elf, half-elf, and human feats whenever you gain an ancestry feat.'); INSERT INTO ancestries_heritages (ancestry_id, heritage_id) diff --git a/data/traits.sql b/data/traits.sql index e90b358..a778bbe 100644 --- a/data/traits.sql +++ b/data/traits.sql @@ -15,6 +15,5 @@ VALUES (6, 'Human', 'TODO'), (7, 'Half-Elf', 'TODO'), (8, 'Half-Orc', 'TODO'), - (9, 'Humanoid', 'TODO') -); + (9, 'Humanoid', 'TODO'); diff --git a/schema/ancestries.sql b/schema/ancestries.sql index 9a59463..a27f3b7 100644 --- a/schema/ancestries.sql +++ b/schema/ancestries.sql @@ -93,8 +93,7 @@ CREATE TABLE ancestries_langs ( ancestry_id INTEGER NOT NULL, lang_id INTEGER NOT NULL, FOREIGN KEY (ancestry_id) REFERENCES ancestries(ancestry_id), - FOREIGN KEY (lang_id) REFERENCES langs(lang_id), -); + FOREIGN KEY (lang_id) REFERENCES langs(lang_id)); CREATE TABLE ancestry_additionalangs ( @@ -102,7 +101,7 @@ CREATE TABLE ancestry_additionalangs ( ancestry_id INTEGER NOT NULL, lang_id INTEGER NOT NULL, FOREIGN KEY (ancestry_id) REFERENCES ancestries(ancestry_id), - FOREIGN KEY (lang_id) REFERENCES langs(lang_id), + FOREIGN KEY (lang_id) REFERENCES langs(lang_id) ); /* Need to rethink how to model the various prerequisites */ @@ -115,7 +114,7 @@ CREATE TABLE feats ( prereq_proficiency_ranks INTEGER, frequency TEXT, triggers TEXT, - reqs TEXT, + reqs TEXT ); CREATE TABLE feats_traits (