boartty/gertty/alembic/versions/2a11dd14665_fix_account_table.py
Christoph Gysin f48df0ffdd flake8: Fix F401,F403
This commit fixes the following flake8 issues:

F401 'foo' imported but unused
F403 'from foo import *' used; unable to detect undefined names

Change-Id: I163224c65f54a2e495d6469c1c26a115ad192e23
2015-04-12 16:40:40 -04:00

26 lines
637 B
Python

"""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
def upgrade():
op.drop_index('ix_account_name', 'account')
op.drop_index('ix_account_username', 'account')
op.drop_index('ix_account_email', 'account')
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