Merge pull request #2286 from coreos-inc/remove-unique

Remove unique from queue item state_id
This commit is contained in:
josephschorr 2017-01-18 15:08:51 -05:00 committed by GitHub
commit 8b7178bdd6
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 ###