"""removing url from d file metadata

Revision ID: c2b6d88e6d44
Revises: 889892137919
Create Date: 2016-08-10 14:24:19.741146

"""

# revision identifiers, used by Alembic.
revision = 'c2b6d88e6d44'
down_revision = '889892137919'
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('d_file_metadata', 'url')
    ### end Alembic commands ###


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

