"""Adding window_end to quarterly_revalidation_threshhold

Revision ID: 9e58ce58e4ee
Revises: c3db0b20bdef
Create Date: 2020-01-30 18:44:40.630331

"""

# revision identifiers, used by Alembic.
revision = '9e58ce58e4ee'
down_revision = 'c3db0b20bdef'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

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('quarterly_revalidation_threshold', sa.Column('window_end', sa.DateTime(), nullable=True))
    # ### end Alembic commands ###


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

