"""empty message Revision ID: e0b52571de61 Revises: 02b3b778cb77 Create Date: 2023-04-20 19:49:52.091246 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'e0b52571de61' down_revision = '02b3b778cb77' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('call_number', sa.Column('id', sa.Integer(), nullable=False), sa.Column('appointment_id', sa.Integer(), nullable=True), sa.Column('notified', sa.Boolean(), nullable=True), sa.Column('call_time', sa.DateTime(), nullable=True), sa.ForeignKeyConstraint(['appointment_id'], ['appointment.id'], ), sa.PrimaryKeyConstraint('id') ) with op.batch_alter_table('appointment', schema=None) as batch_op: batch_op.drop_column('notified') batch_op.drop_column('status') # ### 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('status', mysql.VARCHAR(length=20), nullable=True)) batch_op.add_column(sa.Column('notified', mysql.TINYINT(display_width=1), autoincrement=False, nullable=True)) op.drop_table('call_number') # ### end Alembic commands ###