database: fix indices post-rebase
This commit is contained in:
parent
ca883e5662
commit
a1a930b833
1 changed files with 3 additions and 1 deletions
|
@ -1007,6 +1007,7 @@ class ManifestLabel(BaseModel):
|
||||||
(('repository', 'annotated', 'label'), True),
|
(('repository', 'annotated', 'label'), True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Blob(BaseModel):
|
class Blob(BaseModel):
|
||||||
""" Blob represents a content-addressable object stored outside of the database. """
|
""" Blob represents a content-addressable object stored outside of the database. """
|
||||||
digest = CharField(index=True, unique=True)
|
digest = CharField(index=True, unique=True)
|
||||||
|
@ -1169,6 +1170,7 @@ class Tag(BaseModel):
|
||||||
read_slaves = (read_slave,)
|
read_slaves = (read_slave,)
|
||||||
indexes = (
|
indexes = (
|
||||||
(('repository', 'name'), False),
|
(('repository', 'name'), False),
|
||||||
|
(('repository', 'name', 'hidden') False),
|
||||||
|
|
||||||
# This unique index prevents deadlocks when concurrently moving and deleting tags
|
# This unique index prevents deadlocks when concurrently moving and deleting tags
|
||||||
(('repository', 'name', 'lifetime_end'), True),
|
(('repository', 'name', 'lifetime_end'), True),
|
||||||
|
@ -1185,7 +1187,7 @@ class BitTorrentPieces(BaseModel):
|
||||||
database = db
|
database = db
|
||||||
read_slaves = (read_slave,)
|
read_slaves = (read_slave,)
|
||||||
indexes = (
|
indexes = (
|
||||||
(('annotated', 'label'), True),
|
(('blob', 'piece_length'), True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue