From d2620cdf1d049a5e46581300495e51361c555e31 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 10 Mar 2026 16:18:27 +0000 Subject: [PATCH] Add migration to remove extra quotes from EXIF data --- db/migrations/00098_remove_exif_quotes.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db/migrations/00098_remove_exif_quotes.sql diff --git a/db/migrations/00098_remove_exif_quotes.sql b/db/migrations/00098_remove_exif_quotes.sql new file mode 100644 index 00000000..b3f85eff --- /dev/null +++ b/db/migrations/00098_remove_exif_quotes.sql @@ -0,0 +1,6 @@ +-- +goose Up +UPDATE publicreport.image_exif +SET value = SUBSTRING(value, 2, LENGTH(value) - 2) +WHERE value LIKE '"%"' + AND LENGTH(value) >= 2; +-- +goose Down