diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-07-30 20:50:18 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-07-30 20:50:18 -0700 |
commit | 7bdcfe04fc4dbbe7fbe14ef6c45a80e09c78450f (patch) | |
tree | 3b2ac523faea3179008dd7d4cd054576b0abe17b /extra/journal_metadata/chocula_schema.sql | |
parent | 019c867aa46025ecce6f2fddccc16b682081f4be (diff) | |
download | fatcat-7bdcfe04fc4dbbe7fbe14ef6c45a80e09c78450f.tar.gz fatcat-7bdcfe04fc4dbbe7fbe14ef6c45a80e09c78450f.zip |
chocula: better ISSN-L handling
Diffstat (limited to 'extra/journal_metadata/chocula_schema.sql')
-rw-r--r-- | extra/journal_metadata/chocula_schema.sql | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/extra/journal_metadata/chocula_schema.sql b/extra/journal_metadata/chocula_schema.sql index e7e857a3..24adb5e5 100644 --- a/extra/journal_metadata/chocula_schema.sql +++ b/extra/journal_metadata/chocula_schema.sql @@ -28,7 +28,9 @@ CREATE TABLE IF NOT EXISTS journal has_dois BOOLEAN, any_homepage BOOLEAN, any_live_homepage BOOLEAN, - bad_issnl BOOLEAN + any_gwb_homepage BOOLEAN, + known_issnl BOOLEAN, + valid_issnl BOOLEAN ); CREATE TABLE IF NOT EXISTS directory @@ -41,9 +43,9 @@ CREATE TABLE IF NOT EXISTS directory ); CREATE TABLE IF NOT EXISTS fatcat_container - (issnl TEXT NOT NULL PRIMARY KEY, - ident TEXT NOT NULL, + (ident TEXT NOT NULL PRIMARY KEY, revision TEXT NOT NULL, + issnl TEXT, issne TEXT, issnp TEXT, wikidata_qid TEXT, @@ -60,6 +62,7 @@ CREATE TABLE IF NOT EXISTS fatcat_container preserved_count INTEGER, preserved_frac FLOAT ); +CREATE INDEX IF NOT EXISTS fatcat_container_issnl_idx ON fatcat_container(issnl); CREATE TABLE IF NOT EXISTS homepage (id INTEGER PRIMARY KEY, |