summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-12 19:53:44 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:21:30 -0700
commit75b5cc8fbc17c98c17401c5932ec16f48c6e2f54 (patch)
tree91e150972e972847384c52a1cf35682587b61a88 /rust
parentc9ff89b5f3660a9b9ec094141327f006d1633438 (diff)
downloadfatcat-75b5cc8fbc17c98c17401c5932ec16f48c6e2f54.tar.gz
fatcat-75b5cc8fbc17c98c17401c5932ec16f48c6e2f54.zip
rust: implement recent SQL changes
Diffstat (limited to 'rust')
-rw-r--r--rust/src/database_models.rs8
-rw-r--r--rust/src/database_schema.rs4
2 files changed, 12 insertions, 0 deletions
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<String>,
pub issnl: Option<String>,
pub wikidata_qid: Option<String>,
+ pub issne: Option<String>,
+ pub issnp: Option<String>,
+ pub publication_status: Option<String>,
}
#[derive(Debug, Associations, AsChangeset, Insertable)]
@@ -144,6 +147,9 @@ pub struct ContainerRevNewRow {
pub publisher: Option<String>,
pub issnl: Option<String>,
pub wikidata_qid: Option<String>,
+ pub issne: Option<String>,
+ pub issnp: Option<String>,
+ pub publication_status: Option<String>,
}
entity_structs!(
@@ -247,6 +253,7 @@ pub struct FilesetRevFileRow {
pub sha1: Option<String>,
pub sha256: Option<String>,
pub extra_json: Option<serde_json::Value>,
+ pub mimetype: Option<String>,
}
#[derive(Debug, Queryable, Associations, AsChangeset, Insertable)]
@@ -259,6 +266,7 @@ pub struct FilesetRevFileNewRow {
pub sha1: Option<String>,
pub sha256: Option<String>,
pub extra_json: Option<serde_json::Value>,
+ pub mimetype: Option<String>,
}
#[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<Text>,
issnl -> Nullable<Text>,
wikidata_qid -> Nullable<Text>,
+ issne -> Nullable<Text>,
+ issnp -> Nullable<Text>,
+ publication_status -> Nullable<Text>,
}
}
@@ -218,6 +221,7 @@ table! {
sha1 -> Nullable<Text>,
sha256 -> Nullable<Text>,
extra_json -> Nullable<Jsonb>,
+ mimetype -> Nullable<Text>,
}
}