diff --git a/migrations/versions/7205816877ec_change_type_of_json_fields_from_varchar_.py b/migrations/versions/7205816877ec_change_type_of_json_fields_from_varchar_.py index 7364893da6..1b4dd55dfe 100644 --- a/migrations/versions/7205816877ec_change_type_of_json_fields_from_varchar_.py +++ b/migrations/versions/7205816877ec_change_type_of_json_fields_from_varchar_.py @@ -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()),