35 lines
933 B
Python
35 lines
933 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: a6858c0553e9
|
||
|
Revises: a89a0dc536df
|
||
|
Create Date: 2023-04-14 13:57:47.242732
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'a6858c0553e9'
|
||
|
down_revision = 'a89a0dc536df'
|
||
|
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('is_morning', sa.Integer(), nullable=True))
|
||
|
batch_op.add_column(sa.Column('is_afternoon', sa.Integer(), nullable=True))
|
||
|
|
||
|
# ### 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.drop_column('is_afternoon')
|
||
|
batch_op.drop_column('is_morning')
|
||
|
|
||
|
# ### end Alembic commands ###
|