35 lines
978 B
Python
35 lines
978 B
Python
"""empty message
|
|
|
|
Revision ID: 60bd7995263a
|
|
Revises: 5bcae7b12e80
|
|
Create Date: 2023-04-15 13:12:17.315378
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import mysql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '60bd7995263a'
|
|
down_revision = '5bcae7b12e80'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('appointment', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('location', sa.String(length=256), nullable=True))
|
|
batch_op.drop_column('address')
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('appointment', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('address', mysql.VARCHAR(length=256), nullable=True))
|
|
batch_op.drop_column('location')
|
|
|
|
# ### end Alembic commands ###
|