diff --git a/mapstore2_adapter/migrations/0005_map_blob_migration.py b/mapstore2_adapter/migrations/0005_map_blob_migration.py index ba39139cae..55727867fb 100644 --- a/mapstore2_adapter/migrations/0005_map_blob_migration.py +++ b/mapstore2_adapter/migrations/0005_map_blob_migration.py @@ -15,7 +15,7 @@ JOIN public.maps_map md ON msd.resource_id =md.resourcebase_ptr_id) UPDATE base_resourcebase -SET "blob"=subquery."blob" +SET "blob"=to_json(subquery."blob"::text) FROM (select resource_id,"blob" from mapstore_blob gg) AS subquery WHERE base_resourcebase.id=subquery.resource_id; '''