Add column collation to column creation in SQLAlchemy. Optional, a column-level collation for use in DDL and CAST expressions. Renders using the COLLATE keyword supported by SQLite, MySQL, and Postgresql.
Source code viewer
from alembic import op import sqlalchemy as sa op.create_table( 'service', sa.Column('id', sa.Unicode(32, collation='utf8_bin'), primary_key=True), sa.Column('email', sa.String(64), primary_key=True), sa.Column('name', sa.String(64)), )Programming Language: Python