From 0c94a210d7e8bc40055550483745cf1087f93498 Mon Sep 17 00:00:00 2001 From: James Miller Date: Wed, 14 Aug 2019 23:46:14 -0500 Subject: [PATCH] removed heritages_traits table --- data/heritages.sql | 13 ++----------- schema/ancestries.sql | 10 ---------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/data/heritages.sql b/data/heritages.sql index 8c9006d..d655952 100644 --- a/data/heritages.sql +++ b/data/heritages.sql @@ -81,8 +81,9 @@ VALUES (3, 200), (3, 201), (3, 202), - (3, 203), + -- (3, 203), TODO there was no #203 in Gnomes; need to see what's going on (3, 204), + (3, 205), -- Goblin (4, 300), (4, 301), @@ -105,13 +106,3 @@ VALUES -- but we link it up to ancestry ids too) (7, 500), (8, 501); - - - -/* TODO this table is likely not needed anymore; AND TODO the trait_ids likely don't match anymore. */ -INSERT INTO heritages_traits - (heritage_id, trait_id) -VALUES - (6, 7), - (6, 2), - (6, 6); diff --git a/schema/ancestries.sql b/schema/ancestries.sql index 108cef8..93ec7ed 100644 --- a/schema/ancestries.sql +++ b/schema/ancestries.sql @@ -60,16 +60,6 @@ CREATE TABLE ancestries_heritages ( FOREIGN KEY (heritage_id) REFERENCES heritages(heritage_id) ); -/* TODO THIS TABLE IS LIKELY NOT NEEDED. THANKS WES! */ - -CREATE TABLE heritages_traits ( - id INTEGER PRIMARY KEY, - heritage_id INTEGER NOT NULL, - trait_id INTEGER NOT NULL, - -- UNIQUE(heritage_id, trait_id), - FOREIGN KEY (heritage_id) REFERENCES heritages(heritage_id), - FOREIGN KEY (trait_id) REFERENCES traits(trait_id) -); /* has partial data */ CREATE TABLE ancestries_traits (