Merge pull request #2286 from coreos-inc/remove-unique
Remove unique from queue item state_id
This commit is contained in:
commit
8b7178bdd6
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 ###
|
||||
|
||||
|
||||
|
|
Reference in a new issue