Remove unique from queue item state_id

This commit is contained in:
Joseph Schorr 2017-01-18 15:04:26 -05:00
parent 9667eab12c
commit af23d2bedd
2 changed files with 2 additions and 2 deletions

View file

@ -762,7 +762,7 @@ class QueueItem(BaseModel):
available = BooleanField(default=True)
processing_expires = DateTimeField(null=True)
retries_remaining = IntegerField(default=5)
state_id = CharField(default=uuid_generator, index=True, unique=True)
state_id = CharField(default=uuid_generator, index=True, unique=False)
class Meta:
database = db

View file

@ -17,7 +17,7 @@ from sqlalchemy.dialects import mysql
def upgrade(tables):
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('queueitem', sa.Column('state_id', sa.String(length=255), nullable=False, server_default=''))
op.create_index('queueitem_state_id', 'queueitem', ['state_id'], unique=True)
op.create_index('queueitem_state_id', 'queueitem', ['state_id'], unique=False)
# ### end Alembic commands ###