"""problem_foreign_key

Revision ID: 0019
Revises: 0018
Create Date: 2022-01-21 08:11:52.233501+00:00

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '0019'
down_revision = '0018'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint('problem_shift_id_fkey', 'problem', type_='foreignkey')
    op.create_foreign_key(None, 'problem', 'shift', ['shift_id'], ['id'], ondelete='CASCADE')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'problem', type_='foreignkey')
    op.create_foreign_key('problem_shift_id_fkey', 'problem', 'shift', ['shift_id'], ['id'])
    # ### end Alembic commands ###
