removed heritages_traits table
parent
ea0f374d08
commit
0c94a210d7
|
@ -81,8 +81,9 @@ VALUES
|
||||||
(3, 200),
|
(3, 200),
|
||||||
(3, 201),
|
(3, 201),
|
||||||
(3, 202),
|
(3, 202),
|
||||||
(3, 203),
|
-- (3, 203), TODO there was no #203 in Gnomes; need to see what's going on
|
||||||
(3, 204),
|
(3, 204),
|
||||||
|
(3, 205),
|
||||||
-- Goblin
|
-- Goblin
|
||||||
(4, 300),
|
(4, 300),
|
||||||
(4, 301),
|
(4, 301),
|
||||||
|
@ -105,13 +106,3 @@ VALUES
|
||||||
-- but we link it up to ancestry ids too)
|
-- but we link it up to ancestry ids too)
|
||||||
(7, 500),
|
(7, 500),
|
||||||
(8, 501);
|
(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);
|
|
||||||
|
|
|
@ -60,16 +60,6 @@ CREATE TABLE ancestries_heritages (
|
||||||
FOREIGN KEY (heritage_id) REFERENCES heritages(heritage_id)
|
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 */
|
/* has partial data */
|
||||||
CREATE TABLE ancestries_traits (
|
CREATE TABLE ancestries_traits (
|
||||||
|
|
Loading…
Reference in New Issue