"""add username Revision ID: 98b1b4a0de39 Revises: c818e5b84075 Create Date: 2024-10-03 14:27:43.877725 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = '98b1b4a0de39' down_revision: Union[str, None] = 'c818e5b84075' branch_labels: Union[str, Sequence[str], None] = None depends_on: Union[str, Sequence[str], None] = None def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.add_column('user', sa.Column('username', sa.String(length=100), nullable=False)) op.create_unique_constraint(None, 'user', ['username']) # ### end Alembic commands ### def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.drop_constraint(None, 'user', type_='unique') op.drop_column('user', 'username') # ### end Alembic commands ###