removed heritages_traits table

merge-requests/34/merge
James Miller 2019-08-14 23:46:14 -05:00
parent ea0f374d08
commit 0c94a210d7
2 changed files with 2 additions and 21 deletions

View File

@ -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);

View File

@ -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 (