Remove sources_id FK

This commit is contained in:
Brian Haley committed 2019-11-12 22:39:54 -05:00
1 parent 64c045704e
commit 4501f6a0f3
5 files changed
-6

No files matched your search

-1
View File
@@ -24,7 +24,6 @@ CREATE TABLE actions (
descr TEXT NOT NULL, descr TEXT NOT NULL,
FOREIGN KEY (actioncategories_id) REFERENCES actioncategories(actioncategories_id), FOREIGN KEY (actioncategories_id) REFERENCES actioncategories(actioncategories_id),
FOREIGN KEY (actioncosts_id) REFERENCES actioncosts(actioncosts_id), FOREIGN KEY (actioncosts_id) REFERENCES actioncosts(actioncosts_id),
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
); );
CREATE TABLE actions_traits ( CREATE TABLE actions_traits (
-2
View File
@@ -3,7 +3,6 @@ CREATE TABLE armorgroup (
grp_id INTEGER PRIMARY KEY, grp_id INTEGER PRIMARY KEY,
short_name TEXT NOT NULL UNIQUE, short_name TEXT NOT NULL UNIQUE,
descr TEXT NOT NULL, descr TEXT NOT NULL,
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
); );
CREATE TABLE armorcategory ( CREATE TABLE armorcategory (
@@ -28,7 +27,6 @@ CREATE TABLE armor (
descr TEXT NOT NULL, descr TEXT NOT NULL,
FOREIGN KEY (bulk_id) REFERENCES bulks(bulk_id), FOREIGN KEY (bulk_id) REFERENCES bulks(bulk_id),
FOREIGN KEY (grp_id) REFERENCES armorgroup(grp_id), FOREIGN KEY (grp_id) REFERENCES armorgroup(grp_id),
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
); );
CREATE TABLE armor_traits ( CREATE TABLE armor_traits (
-1
View File
@@ -6,7 +6,6 @@ CREATE TABLE backgrounds (
descr TEXT NOT NULL, descr TEXT NOT NULL,
is_comty_use BOOLEAN NOT NULL, -- false = no community use policy required is_comty_use BOOLEAN NOT NULL, -- false = no community use policy required
is_specific_to_adv BOOLEAN NOT NULL, -- means the background is specific to its adventure is_specific_to_adv BOOLEAN NOT NULL, -- means the background is specific to its adventure
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
); );
-- Joining table -- -- Joining table --
-1
View File
@@ -3,7 +3,6 @@ CREATE TABLE bulks (
short_name TEXT NOT NULL, short_name TEXT NOT NULL,
long_name TEXT NOT NULL, long_name TEXT NOT NULL,
numerical FLOAT NOT NULL, numerical FLOAT NOT NULL,
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
); );
-- Joining table -- -- Joining table --
-1
View File
@@ -5,7 +5,6 @@ CREATE TABLE conditions (
name TEXT UNIQUE NOT NULL, name TEXT UNIQUE NOT NULL,
short_descr TEXT NOT NULL, short_descr TEXT NOT NULL,
descr TEXT NOT NULL, descr TEXT NOT NULL,
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
); );
-- Joining table -- -- Joining table --