バージョン0.8.8以降、alembicはPostgreSQLのUSINGをサポートしています。 postgresql_usingを使用 パラメータ:
op.alter_column('views', 'cols', type_=postgresql.BIT(varying=True), postgresql_using='col_name::expr')
バージョン0.8.8以降、alembicはPostgreSQLのUSINGをサポートしています。 postgresql_usingを使用 パラメータ:
op.alter_column('views', 'cols', type_=postgresql.BIT(varying=True), postgresql_using='col_name::expr')