Initial commit with authentication and routes for registering/login already set up
This commit is contained in:
32
alembic/versions/bc6a303851bc_removed_username.py
Normal file
32
alembic/versions/bc6a303851bc_removed_username.py
Normal file
@ -0,0 +1,32 @@
|
||||
"""Removed username
|
||||
|
||||
Revision ID: bc6a303851bc
|
||||
Revises: 21ac26bca176
|
||||
Create Date: 2024-10-14 03:48:16.528692
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = 'bc6a303851bc'
|
||||
down_revision: Union[str, None] = '21ac26bca176'
|
||||
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.drop_constraint('users_username_key', 'users', type_='unique')
|
||||
op.drop_column('users', 'username')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('users', sa.Column('username', sa.VARCHAR(), autoincrement=False, nullable=False))
|
||||
op.create_unique_constraint('users_username_key', 'users', ['username'])
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user