"""added business categories field

Revision ID: 7ac94529d32e
Revises: f6a9c7e6694b
Create Date: 2018-04-09 16:02:50.367204

"""

# revision identifiers, used by Alembic.
revision = '7ac94529d32e'
down_revision = 'f6a9c7e6694b'
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('detached_award_procurement', sa.Column('business_categories', sa.ARRAY(sa.Text()), nullable=True))
    op.add_column('published_award_financial_assistance', sa.Column('business_categories', sa.ARRAY(sa.Text()), nullable=True))
    ### end Alembic commands ###


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

