Skip to content

Commit

Permalink
- Fix '0005_map_blob_migration' migration
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jul 27, 2021
1 parent 29f7ae0 commit ba38d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapstore2_adapter/migrations/0005_map_blob_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
'''
Expand Down

0 comments on commit ba38d11

Please sign in to comment.