"""Add high comp officer fields to detached_award_procurement table

Revision ID: 3f24399ddd1b
Revises: ad3dd1c0cf20
Create Date: 2019-05-24 09:31:12.678128

"""

# revision identifiers, used by Alembic.
revision = '3f24399ddd1b'
down_revision = 'ad3dd1c0cf20'
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('high_comp_officer1_amount', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer1_full_na', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer2_amount', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer2_full_na', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer3_amount', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer3_full_na', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer4_amount', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer4_full_na', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer5_amount', sa.Text(), nullable=True))
    op.add_column('detached_award_procurement', sa.Column('high_comp_officer5_full_na', sa.Text(), nullable=True))
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('detached_award_procurement', 'high_comp_officer5_full_na')
    op.drop_column('detached_award_procurement', 'high_comp_officer5_amount')
    op.drop_column('detached_award_procurement', 'high_comp_officer4_full_na')
    op.drop_column('detached_award_procurement', 'high_comp_officer4_amount')
    op.drop_column('detached_award_procurement', 'high_comp_officer3_full_na')
    op.drop_column('detached_award_procurement', 'high_comp_officer3_amount')
    op.drop_column('detached_award_procurement', 'high_comp_officer2_full_na')
    op.drop_column('detached_award_procurement', 'high_comp_officer2_amount')
    op.drop_column('detached_award_procurement', 'high_comp_officer1_full_na')
    op.drop_column('detached_award_procurement', 'high_comp_officer1_amount')
    # ### end Alembic commands ###

