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

37 lines
1.1 KiB
Python

"""empty message
Revision ID: 02b3b778cb77
Revises: 990cd6f0472e
Create Date: 2023-04-20 19:32:12.155188
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '02b3b778cb77'
down_revision = '990cd6f0472e'
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('status', sa.String(length=20), nullable=True))
batch_op.add_column(sa.Column('notified', sa.Boolean(), nullable=True))
batch_op.drop_column('has_called')
# ### 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('has_called', mysql.TINYINT(display_width=1), autoincrement=False, nullable=True))
batch_op.drop_column('notified')
batch_op.drop_column('status')
# ### end Alembic commands ###