From 75b5cc8fbc17c98c17401c5932ec16f48c6e2f54 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 12 Oct 2021 19:53:44 -0700 Subject: rust: implement recent SQL changes --- rust/src/database_models.rs | 8 ++++++++ rust/src/database_schema.rs | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'rust/src') diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index e4bca2b0..76c8675d 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -133,6 +133,9 @@ pub struct ContainerRevRow { pub publisher: Option, pub issnl: Option, pub wikidata_qid: Option, + pub issne: Option, + pub issnp: Option, + pub publication_status: Option, } #[derive(Debug, Associations, AsChangeset, Insertable)] @@ -144,6 +147,9 @@ pub struct ContainerRevNewRow { pub publisher: Option, pub issnl: Option, pub wikidata_qid: Option, + pub issne: Option, + pub issnp: Option, + pub publication_status: Option, } entity_structs!( @@ -247,6 +253,7 @@ pub struct FilesetRevFileRow { pub sha1: Option, pub sha256: Option, pub extra_json: Option, + pub mimetype: Option, } #[derive(Debug, Queryable, Associations, AsChangeset, Insertable)] @@ -259,6 +266,7 @@ pub struct FilesetRevFileNewRow { pub sha1: Option, pub sha256: Option, pub extra_json: Option, + pub mimetype: Option, } #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index 46baba59..e0a54233 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -55,6 +55,9 @@ table! { publisher -> Nullable, issnl -> Nullable, wikidata_qid -> Nullable, + issne -> Nullable, + issnp -> Nullable, + publication_status -> Nullable, } } @@ -218,6 +221,7 @@ table! { sha1 -> Nullable, sha256 -> Nullable, extra_json -> Nullable, + mimetype -> Nullable, } } -- cgit v1.2.3