aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/database_models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-26 23:26:39 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-26 23:26:39 -0800
commit0f7fb8806c1a39aa54d0cd051aa48478c1b1c070 (patch)
tree4e93dd1d39c7fed0f56d7d8ef6b57fea9b60847d /rust/src/database_models.rs
parent0182cd1456ca1457747ff1363d9d5c5cf95ee2f7 (diff)
downloadfatcat-0f7fb8806c1a39aa54d0cd051aa48478c1b1c070.tar.gz
fatcat-0f7fb8806c1a39aa54d0cd051aa48478c1b1c070.zip
impl edit_id change
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r--rust/src/database_models.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs
index d2f6c3c2..fc5fc896 100644
--- a/rust/src/database_models.rs
+++ b/rust/src/database_models.rs
@@ -52,7 +52,7 @@ macro_rules! entity_structs {
#[derive(Debug, Queryable, Identifiable, Associations, AsChangeset, QueryableByName)]
#[table_name = $edit_table]
pub struct $edit_struct {
- pub id: i64,
+ pub id: Uuid,
pub editgroup_id: Uuid,
pub updated: chrono::NaiveDateTime,
pub ident_id: Uuid,
@@ -82,7 +82,7 @@ macro_rules! entity_structs {
redirect_ident: self.redirect_id.map(|v| uuid2fcid(&v)),
prev_revision: self.prev_rev.map(|v| v.to_string()),
ident: uuid2fcid(&self.ident_id),
- edit_id: self.id,
+ edit_id: self.id.to_string(),
extra: self.extra_json,
})
}