Alembic: alter column type with USING
I'm attempting to use alembic to convert a SQLAlchemy PostgreSQL ARRAY(Text) field to a BIT(varying=True) field for one of my table columns. The column is currently defined as: cols = Column(ARRAY(TEXT), nullable=False, index=True) I want to change it to: cols = Column(BIT(varying=True), nullable=False, index=True) Changing column types doesn't seem to be supported by default, so I'm editing the alembic script by hand. This is what I have currently: def upgrade(): op.alter_column( table_name='views', column_name='cols', nullable=False, type_=postgresql.BIT(varying=True) ) def downgrade(): op