mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-16 22:29:44 -04:00
Remove sources_id FK
This commit is contained in:
1 parent
64c045704e
commit
4501f6a0f3
5 files changed
-6
No files matched your search
@@ -24,7 +24,6 @@ CREATE TABLE actions (
|
||||
descr TEXT NOT NULL,
|
||||
FOREIGN KEY (actioncategories_id) REFERENCES actioncategories(actioncategories_id),
|
||||
FOREIGN KEY (actioncosts_id) REFERENCES actioncosts(actioncosts_id),
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
CREATE TABLE actions_traits (
|
||||
|
||||
@@ -3,7 +3,6 @@ CREATE TABLE armorgroup (
|
||||
grp_id INTEGER PRIMARY KEY,
|
||||
short_name TEXT NOT NULL UNIQUE,
|
||||
descr TEXT NOT NULL,
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
CREATE TABLE armorcategory (
|
||||
@@ -28,7 +27,6 @@ CREATE TABLE armor (
|
||||
descr TEXT NOT NULL,
|
||||
FOREIGN KEY (bulk_id) REFERENCES bulks(bulk_id),
|
||||
FOREIGN KEY (grp_id) REFERENCES armorgroup(grp_id),
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
CREATE TABLE armor_traits (
|
||||
|
||||
@@ -6,7 +6,6 @@ CREATE TABLE backgrounds (
|
||||
descr TEXT NOT NULL,
|
||||
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
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
-- Joining table --
|
||||
|
||||
@@ -3,7 +3,6 @@ CREATE TABLE bulks (
|
||||
short_name TEXT NOT NULL,
|
||||
long_name TEXT NOT NULL,
|
||||
numerical FLOAT NOT NULL,
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
-- Joining table --
|
||||
|
||||
@@ -5,7 +5,6 @@ CREATE TABLE conditions (
|
||||
name TEXT UNIQUE NOT NULL,
|
||||
short_descr TEXT NOT NULL,
|
||||
descr TEXT NOT NULL,
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
-- Joining table --
|
||||
|
||||
Reference in new issue
Block a user