Skip to content

Commit

Permalink
Update exif_date to be bigint because 64bits good
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Golub authored and Max Golub committed Apr 2, 2024
1 parent ef5f3f5 commit 6081a5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct Photo {
pub hash: i64,
pub original_path: String,
pub current_path: String,
pub exif_date: i32,
pub exif_date: i64,
pub exif_json: String,
}

Expand Down
7 changes: 5 additions & 2 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ diesel::table! {
hash -> BigInt,
original_path -> Text,
current_path -> Text,
exif_date -> Integer,
exif_json -> Text,
exif_date -> BigInt,
}
}

diesel::allow_tables_to_appear_in_same_query!(duplicates, photos,);
diesel::allow_tables_to_appear_in_same_query!(
duplicates,
photos,
);

0 comments on commit 6081a5f

Please sign in to comment.