Skip to content

Commit

Permalink
resource: add missing indices
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo committed Feb 15, 2018
1 parent 500f561 commit 5e005fa
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""create indices on resource owners
Revision ID: 613e7c11dead
Revises: b5e6dd3449dd
Create Date: 2018-02-15 11:51:29.659352
"""
from __future__ import unicode_literals

# revision identifiers, used by Alembic.
revision = '613e7c11dead'
down_revision = 'b5e6dd3449dd'

from alembic import op

def upgrade():
op.create_index(op.f('ix_resources_owner_group_id'), 'resources', ['owner_group_id'])
op.create_index(op.f('ix_resources_owner_user_id'), 'resources', ['owner_user_id'])

def downgrade():
pass

0 comments on commit 5e005fa

Please sign in to comment.