Skip to content

Commit

Permalink
Cast to JSONB type to match altered column type (#6707)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinedwards authored Jan 15, 2024
1 parent 4c47bef commit cd03da3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit cd03da3

Please sign in to comment.