mirror of
https://github.com/penpot/penpot.git
synced 2026-11-07 10:30:40 +00:00
9 lines
257 B
SQL
9 lines
257 B
SQL
-- Fix problem with content-type incoherence
|
|
|
|
UPDATE storage_object so
|
|
SET metadata = jsonb_set(metadata, '{~:content-type}', to_jsonb(fmo.mtype))
|
|
FROM file_media_object fmo
|
|
WHERE so.id = fmo.media_id and
|
|
so.metadata->>'~:content-type' != fmo.mtype;
|
|
|