Cast to JSONB type to match altered column type (#6707)

This commit is contained in:
Robin Edwards
2024-01-15 16:23:35 +00:00
committed by GitHub
parent 4c47bef582
commit cd03da3260

View File

@@ -63,7 +63,7 @@ def upgrade():
existing_type=sa.Text(),
type_=JSONB(astext_type=sa.Text()),
nullable=True,
postgresql_using='data::text',
postgresql_using='data::jsonb',
server_default=sa.text("'{}'::jsonb"))
op.alter_column('changes', 'change',
existing_type=JSON(astext_type=sa.Text()),