"""empty message

Revision ID: bd4edc7fef1d
Revises: 
Create Date: 2019-03-25 10:28:10.526510

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "bd4edc7fef1d"
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint("message_job_id_fkey", "message", type_="foreignkey")
    op.create_foreign_key(
        None, "message", "job", ["job_id"], ["id"], ondelete="cascade"
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, "message", type_="foreignkey")
    op.create_foreign_key("message_job_id_fkey", "message", "job", ["job_id"], ["id"])
    # ### end Alembic commands ###
