2024-07-29 11:43:52 +08:00

33 lines
798 B
Python

"""empty message
Revision ID: 2961517be887
Revises: 8a31f809b808
Create Date: 2023-04-15 18:23:26.756873
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2961517be887'
down_revision = '8a31f809b808'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.add_column(sa.Column('id_number', sa.String(length=64), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.drop_column('id_number')
# ### end Alembic commands ###