mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
update scripts; add sources to languages as an example
This commit is contained in:
1 parent
a024c59cee
commit
22ae63d693
6 files changed
+44
-33
No files matched your search
+4
-3
@@ -10,8 +10,9 @@ CREATE TABLE langs (
|
||||
lang TEXT NOT NULL UNIQUE,
|
||||
speakers TEXT NOT NULL UNIQUE,
|
||||
rarity_id INTEGER NOT NULL,
|
||||
src_book INTEGER NOT NULL,
|
||||
src_pages TEXT NOT NULL,
|
||||
FOREIGN KEY (rarity_id) REFERENCES langsrarity(rarity_id)
|
||||
sources_id INTEGER NOT NULL,
|
||||
sources_pages TEXT NOT NULL,
|
||||
FOREIGN KEY (rarity_id) REFERENCES langsrarity(rarity_id),
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
-- -*- mode:sql sql-product:sqlite -*-
|
||||
|
||||
-- MUST BE CALLED EARLY IN SCRIPT
|
||||
|
||||
CREATE TABLE sources (
|
||||
sources_id INTEGER PRIMARY KEY,
|
||||
sources_full_name TEXT NOT NULL UNIQUE,
|
||||
|
||||
Reference in new issue
Block a user