summaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-09 23:24:29 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-09 23:24:29 -0700
commit4e89ffc029d42bcf374cfe9cc6aa6b1d35ea4632 (patch)
tree7e7cfb3a178019c276a9e2a5bf380824a232c011 /rust/src
parentdca71aa9b278832262725147d28334141a6da827 (diff)
downloadfatcat-4e89ffc029d42bcf374cfe9cc6aa6b1d35ea4632.tar.gz
fatcat-4e89ffc029d42bcf374cfe9cc6aa6b1d35ea4632.zip
rust impl cdx extra_json removal
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/database_models.rs2
-rw-r--r--rust/src/database_schema.rs1
-rw-r--r--rust/src/entity_crud.rs2
3 files changed, 0 insertions, 5 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs
index e7918ec5..e37a6f18 100644
--- a/rust/src/database_models.rs
+++ b/rust/src/database_models.rs
@@ -312,7 +312,6 @@ pub struct WebcaptureRevCdxRow {
pub sha1: String,
pub sha256: Option<String>,
pub size_bytes: Option<i64>,
- pub extra_json: Option<serde_json::Value>,
}
#[derive(Debug, Queryable, Associations, AsChangeset, Insertable)]
@@ -327,7 +326,6 @@ pub struct WebcaptureRevCdxNewRow {
pub sha1: String,
pub sha256: Option<String>,
pub size_bytes: Option<i64>,
- pub extra_json: Option<serde_json::Value>,
}
#[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)]
diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs
index ce4f5c49..b7dee298 100644
--- a/rust/src/database_schema.rs
+++ b/rust/src/database_schema.rs
@@ -380,7 +380,6 @@ table! {
sha1 -> Text,
sha256 -> Nullable<Text>,
size_bytes -> Nullable<Int8>,
- extra_json -> Nullable<Jsonb>,
}
}
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index 314aa043..4a7cdee0 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -1444,7 +1444,6 @@ impl EntityCrud for WebcaptureEntity {
size_bytes: c.size_bytes,
sha1: c.sha1,
sha256: c.sha256,
- extra: c.extra_json,
})
.collect();
@@ -1534,7 +1533,6 @@ impl EntityCrud for WebcaptureEntity {
size_bytes: c.size_bytes,
sha1: c.sha1.clone(),
sha256: c.sha256.clone(),
- extra_json: c.extra.clone(),
})
.collect();
webcapture_cdx_rows.extend(these_cdx_rows);