You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
803 B
Python
31 lines
803 B
Python
"""empty message
|
|
|
|
Revision ID: f06a2e34836b
|
|
Revises: d76ecaeb13db
|
|
Create Date: 2023-09-23 07:58:10.338559
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'f06a2e34836b'
|
|
down_revision: Union[str, None] = 'd76ecaeb13db'
|
|
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('password_hash', sa.String(), nullable=False))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('user', 'password_hash')
|
|
# ### end Alembic commands ###
|