"""Add a priority column to the sub_tier_agency table

Revision ID: 17ec44522729
Revises: 21d297a08e18
Create Date: 2017-03-29 11:47:53.588669

"""

# revision identifiers, used by Alembic.
revision = '17ec44522729'
down_revision = '21d297a08e18'
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.add_column('sub_tier_agency', sa.Column('priority', sa.Integer(), server_default='2', nullable=False))
    ### end Alembic commands ###


def downgrade_data_broker():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('sub_tier_agency', 'priority')
    ### end Alembic commands ###

