This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions/246df01a6d51_add_index_to_retries_remaining.py

27 lines
691 B
Python
Raw Normal View History

2015-08-04 22:01:28 +00:00
"""Add index to retries_remaining
Revision ID: 246df01a6d51
Revises: 5232a5610a0a
Create Date: 2015-08-04 17:59:42.262877
"""
# revision identifiers, used by Alembic.
revision = '246df01a6d51'
down_revision = '5232a5610a0a'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.create_index('queueitem_retries_remaining', 'queueitem', ['retries_remaining'], unique=False)
### end Alembic commands ###
def downgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.drop_index('queueitem_retries_remaining', table_name='queueitem')
### end Alembic commands ###