parent
206ffc65af
commit
18b14001b4
2 changed files with 28 additions and 2 deletions
|
@ -0,0 +1,26 @@
|
|||
"""Add indices for security worker queries.
|
||||
|
||||
Revision ID: 1b2bb93ceb82
|
||||
Revises: 22af01f81722
|
||||
Create Date: 2015-11-18 13:27:41.161898
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '1b2bb93ceb82'
|
||||
down_revision = '22af01f81722'
|
||||
|
||||
from alembic import op
|
||||
|
||||
def upgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_index('image_security_indexed', 'image', ['security_indexed'], unique=False)
|
||||
op.create_index('image_security_indexed_engine', 'image', ['security_indexed_engine'], unique=False)
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index('image_security_indexed_engine', table_name='image')
|
||||
op.drop_index('image_security_indexed', table_name='image')
|
||||
### end Alembic commands ###
|
Reference in a new issue