Skip to content

Convert column type from text (with serialized JSON) to postgresql.JSONB #984

Discussion options

You must be logged in to vote

Hi,

With porstresql you may be able to use https://alembic.sqlalchemy.org/en/latest/ops.html?highlight=postgresql_using#alembic.operations.Operations.alter_column.params.postgresql_using
to render an ALTER [ COLUMN ] column_name [ SET DATA ] TYPE data_type [ COLLATE collation ] [ USING expression ].

see https://www.postgresql.org/docs/current/sql-altertable.html for details

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chrisjsewell
Comment options

Answer selected by chrisjsewell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants