Add indexes for the users table

This commit is contained in:
Rebecca Law
2015-12-09 13:20:00 +00:00
parent 9c0a4529c1
commit 27572ddb08
2 changed files with 1 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
from alembic import op
revision = '30_rm_unique_constraint'
down_revision = '20_initialise_data'
def upgrade():
op.drop_constraint("users_name_key", "users")
def downgrade():
op.create_unique_constraint("users_name_key", "users", ["name"])