Skip to content

Commit

Permalink
Sha256 image deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
reasv committed Mar 30, 2021
1 parent d1950ec commit b824cf0
Show file tree
Hide file tree
Showing 13 changed files with 733 additions and 491 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ handlebars_misc_helpers = "0.11.2"
sqlx = { version = "0.5", features = [ "postgres", "macros", "migrate", "runtime-tokio-rustls", "offline" ] }
rust-embed = "5.9.0"
mime_guess = "2.0.3"
sha2 = "0.9.3"

[profile.release]
lto = true
Expand Down
5 changes: 2 additions & 3 deletions migrations/20210329215000_create_image_backlog.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
CREATE TABLE image_backlog (
id BIGSERIAL PRIMARY KEY,
board TEXT NOT NULL,
no TEXT NOT NULL,
no BIGINT NOT NULL,
url TEXT NOT NULL,
thumbnail_url TEXT NOT NULL,
filename TEXT NOT NULL,
thumbnail_filename TEXT NOT NULL,
ext TEXT NOT NULL,
page INTEGER NOT NULL,
file_sha256 TEXT NOT NULL,
thumbnail_sha256 TEXT NOT NULL,
Expand Down
Loading

0 comments on commit b824cf0

Please sign in to comment.