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

35 lines
918 B
Python

"""empty message
Revision ID: 7738309ad0d0
Revises: d5b377434283
Create Date: 2023-04-06 15:19:58.457148
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7738309ad0d0'
down_revision = 'd5b377434283'
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('address', sa.String(length=128), nullable=True))
batch_op.add_column(sa.Column('phone', sa.String(length=15), 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('phone')
batch_op.drop_column('address')
# ### end Alembic commands ###