Since version 0.8.8, alembic supports PostgreSQL’s USING with the postgresql_using parameter:
op.alter_column('views', 'cols', type_=postgresql.BIT(varying=True), postgresql_using='col_name::expr')
Since version 0.8.8, alembic supports PostgreSQL’s USING with the postgresql_using parameter:
op.alter_column('views', 'cols', type_=postgresql.BIT(varying=True), postgresql_using='col_name::expr')