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