You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for jsonb data type has been added in #86. It would be useful to provide a data migration script to convert existing (JSON encoded) bytea event data and metadata to jsonb.
The text was updated successfully, but these errors were encountered:
Posting it her for posterity, might be useful (postgres)
ALTERTABLE events
ALTER COLUMN data TYPE jsonb USING convert_from(data, 'UTF8')::jsonb,
ALTER COLUMN metadata TYPE jsonb USING convert_from(metadata, 'UTF8')::jsonb;
In case you don't have convert_from available in your postgres installation (I don't have it in mine and I'm not sure where it's coming from):
altertable events alter column metadata type jsonb using (metadata #>> '{}')::jsonb, alter column data type jsonb using (data #>> '{}')::jsonb;altertable snapshots alter column metadata type jsonb using (metadata #>> '{}')::jsonb, alter column data type jsonb using (data #>> '{}')::jsonb;
Support for
jsonb
data type has been added in #86. It would be useful to provide a data migration script to convert existing (JSON encoded)bytea
event data and metadata tojsonb
.The text was updated successfully, but these errors were encountered: