35 lines
933 B
Python
35 lines
933 B
Python
"""empty message
|
|
|
|
Revision ID: a89a0dc536df
|
|
Revises: ffde36a65d1a
|
|
Create Date: 2023-04-14 13:27:27.199624
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'a89a0dc536df'
|
|
down_revision = 'ffde36a65d1a'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('workday', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('temp_morning', sa.Integer(), nullable=True))
|
|
batch_op.add_column(sa.Column('temp_afternoon', sa.Integer(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('workday', schema=None) as batch_op:
|
|
batch_op.drop_column('temp_afternoon')
|
|
batch_op.drop_column('temp_morning')
|
|
|
|
# ### end Alembic commands ###
|