"""Remove awarding_agency_code from DetachedAwardFinancialAssistance table

Revision ID: 551a8e1cc551
Revises: aa10ae595d3e
Create Date: 2017-07-10 11:03:55.714174

"""

# revision identifiers, used by Alembic.
revision = '551a8e1cc551'
down_revision = 'aa10ae595d3e'
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.drop_column('detached_award_financial_assistance', 'awarding_agency_code')
    ### end Alembic commands ###


def downgrade_data_broker():
    ### commands auto generated by Alembic - please adjust! ###
    op.add_column('detached_award_financial_assistance', sa.Column('awarding_agency_code', sa.TEXT(), autoincrement=False, nullable=True))
    ### end Alembic commands ###

