data.database: rm tag_kind from Tag indexes

These shouldn't be necessary.
This commit is contained in:
Jimmy Zelinskie 2017-03-16 17:20:54 -04:00
parent 0e32e77e99
commit c915a40531
2 changed files with 6 additions and 6 deletions

View file

@ -1282,10 +1282,10 @@ class Tag(BaseModel):
database = db
read_slaves = (read_slave,)
indexes = (
(('repository', 'name', 'tag_kind'), False),
(('repository', 'name', 'hidden', 'tag_kind'), False),
(('repository', 'name'), False),
(('repository', 'name', 'hidden'), False),
# This unique index prevents deadlocks when concurrently moving and deleting tags
(('repository', 'name', 'lifetime_end', 'tag_kind'), True),
(('repository', 'name', 'lifetime_end'), True),
)