Add migration to remove extra quotes from EXIF data
This commit is contained in:
parent
6db5bb1cbf
commit
d2620cdf1d
1 changed files with 6 additions and 0 deletions
6
db/migrations/00098_remove_exif_quotes.sql
Normal file
6
db/migrations/00098_remove_exif_quotes.sql
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue