"""problem.gap_id

Revision ID: 0035
Revises: 0034
Create Date: 2022-05-16 14:42:25.688927+00:00

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '0035'
down_revision = '0034'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('problem', sa.Column('duty_gap_id', sa.Integer(), nullable=True))
    op.add_column('problem', sa.Column('manual_gap_id', sa.Integer(), nullable=True))
    op.create_foreign_key(None, 'problem', 'manual_gap', ['manual_gap_id'], ['id'])
    op.create_foreign_key(None, 'problem', 'duty_gap', ['duty_gap_id'], ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'problem', type_='foreignkey')
    op.drop_constraint(None, 'problem', type_='foreignkey')
    op.drop_column('problem', 'manual_gap_id')
    op.drop_column('problem', 'duty_gap_id')
    # ### end Alembic commands ###
