"""Rename d2_submission to is_fabs in submission table

Revision ID: f6b781754131
Revises: 132e31899fd0
Create Date: 2022-06-03 10:14:13.896753

"""

# revision identifiers, used by Alembic.
revision = 'f6b781754131'
down_revision = '132e31899fd0'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade(engine_name):
    globals()["upgrade_%s" % engine_name]()


def downgrade(engine_name):
    globals()["downgrade_%s" % engine_name]()





def upgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute("ALTER TABLE submission RENAME COLUMN d2_submission TO is_fabs")
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute("ALTER TABLE submission RENAME COLUMN is_fabs TO d2_submission")
    # ### end Alembic commands ###

