"""empty message

Revision ID: 16d40b17caf
Revises: 813ee19614
Create Date: 2015-12-03 13:24:37.083578

"""

# revision identifiers, used by Alembic.
revision = '16d40b17caf'
down_revision = '813ee19614'

from alembic import op
import sqlalchemy as sa


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.add_column('app_installation', sa.Column('status', sa.Integer(), nullable=False))
    op.create_index('idx_app_installation_user_id_app_id', 'app_installation', ['user_id', 'app_id'], unique=True)
    ### end Alembic commands ###


def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_index('idx_app_installation_user_id_app_id', table_name='app_installation')
    op.drop_column('app_installation', 'status')
    ### end Alembic commands ###
