"""Making some changes to the migrations | |
Revision ID: b55dbab76bb4 | |
Revises: 5dceb6aede3b | |
Create Date: 2024-08-24 01:54:37.745661 | |
""" | |
from typing import Sequence, Union | |
from alembic import op | |
import sqlalchemy as sa | |
# revision identifiers, used by Alembic. | |
revision: str = 'b55dbab76bb4' | |
down_revision: Union[str, None] = '5dceb6aede3b' | |
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('users', sa.Column('password', sa.String(), nullable=False)) | |
op.drop_column('users', 'hashed_password') | |
# ### end Alembic commands ### | |
def downgrade() -> None: | |
# ### commands auto generated by Alembic - please adjust! ### | |
op.add_column('users', sa.Column('hashed_password', sa.VARCHAR(), autoincrement=False, nullable=False)) | |
op.drop_column('users', 'password') | |
# ### end Alembic commands ### | |