"""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 ###