Would like to change a Column collation from utf8mb4_unicode_ci to utf8mb4_bin
Its updated SqlAlchemy model is
col_name = Column(VARCHAR(10, collation='utf8mb4_bin'), nullable=True)
I have tried
from alembic import op
import sqlalchemy as sa
import sqlalchemy.types as ty
def upgrade():
op.alter_column('table_name',
sa.Column('col_name', ty.VARCHAR(10, collation='utf8mb4_bin') )
)
but the upgrade keeps the MySQL collation of that column to the original utf8mb4_unicode_ci