""" Adding historic flag to DUNS

Revision ID: 3244aa7611ef
Revises: 06d5bc68c29a
Create Date: 2019-07-26 22:54:39.060429

"""

# revision identifiers, used by Alembic.
revision = '3244aa7611ef'
down_revision = '06d5bc68c29a'
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('duns', sa.Column('historic', sa.Boolean(), server_default='False', nullable=True))
    # ### end Alembic commands ###


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

