update scripts; add sources to languages as an example

This commit is contained in:
jrmiller82 committed 2019-08-06 17:54:34 -05:00
1 parent a024c59cee
commit 22ae63d693
6 files changed
+44 -33

No files matched your search

+4 -3
View File
@@ -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)
);
+2
View File
@@ -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,