"""remove last_login_date from user

Revision ID: afff86382e26
Revises: c61ef3d88859
Create Date: 2016-12-23 09:39:39.750691

"""

# revision identifiers, used by Alembic.
revision = 'afff86382e26'
down_revision = 'c61ef3d88859'
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.drop_column('users', 'last_login_date')
    ### end Alembic commands ###


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

