Fix account table indexes

The migration that introduced the account table totally botched
the indexes.

Change-Id: I69fce9cb092ac0819df15887076784d8f754ac96
This commit is contained in:
James E. Blair 2014-08-20 13:12:02 -07:00
parent 11bdd67e86
commit 823ccfb3a3
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
"""fix account table
Revision ID: 2a11dd14665
Revises: 4cc9c46f9d8b
Create Date: 2014-08-20 13:07:25.079603
"""
# revision identifiers, used by Alembic.
revision = '2a11dd14665'
down_revision = '4cc9c46f9d8b'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.drop_index('ix_account_name')
op.drop_index('ix_account_username')
op.drop_index('ix_account_email')
op.create_index(op.f('ix_account_name'), 'account', ['name'])
op.create_index(op.f('ix_account_username'), 'account', ['username'])
op.create_index(op.f('ix_account_email'), 'account', ['email'])
def downgrade():
pass