"""users and results table

Revision ID: 02713c620dee
Revises: 8fa3ea32f43e
Create Date: 2019-10-16 14:30:22.167830

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '02713c620dee'
down_revision = '8fa3ea32f43e'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index('ix_result_gpsr', table_name='result')
    op.create_index(op.f('ix_result_gpsr'), 'result', ['gpsr'], unique=False)
    op.drop_index('ix_result_hhi', table_name='result')
    op.create_index(op.f('ix_result_hhi'), 'result', ['hhi'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_result_hhi'), table_name='result')
    op.create_index('ix_result_hhi', 'result', ['hhi'], unique=1)
    op.drop_index(op.f('ix_result_gpsr'), table_name='result')
    op.create_index('ix_result_gpsr', 'result', ['gpsr'], unique=1)
    # ### end Alembic commands ###
