"""update RevaliationThreshold from date to datetime

Revision ID: b4229d85c9bb
Revises: e33da285ac19
Create Date: 2018-12-03 16:32:12.892832

"""

# revision identifiers, used by Alembic.
revision = 'b4229d85c9bb'
down_revision = 'e33da285ac19'
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.alter_column('revalidation_threshold', 'revalidation_date',
               existing_type=sa.DATE(),
               type_=sa.DateTime())
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('revalidation_threshold', 'revalidation_date',
               existing_type=sa.DateTime(),
               type_=sa.DATE())
    # ### end Alembic commands ###

