Fix model to actually initialize
This commit is contained in:
parent
8435c254c3
commit
94d71f2166
1 changed files with 4 additions and 4 deletions
|
@ -1006,7 +1006,7 @@ class BlobPlacementLocation(BaseModel):
|
||||||
|
|
||||||
class BlobPlacementLocationPreference(BaseModel):
|
class BlobPlacementLocationPreference(BaseModel):
|
||||||
""" BlobPlacementLocationPreference is a location to which a user's data will be replicated. """
|
""" BlobPlacementLocationPreference is a location to which a user's data will be replicated. """
|
||||||
user = QuayUserField(index=True, allow_robots=False)
|
user = QuayUserField(index=True, allows_robots=False)
|
||||||
location = ForeignKeyField(BlobPlacementLocation)
|
location = ForeignKeyField(BlobPlacementLocation)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1124,9 +1124,9 @@ class DerivedImage(BaseModel):
|
||||||
source_manifest = ForeignKeyField(Manifest)
|
source_manifest = ForeignKeyField(Manifest)
|
||||||
derived_manifest_json = JSONField()
|
derived_manifest_json = JSONField()
|
||||||
media_type = ForeignKeyField(MediaType)
|
media_type = ForeignKeyField(MediaType)
|
||||||
blob = ForeignKeyField(Blob)
|
blob = ForeignKeyField(Blob, related_name='blob')
|
||||||
uniqueness_hash = CharField(index=True, unique=True)
|
uniqueness_hash = CharField(index=True, unique=True)
|
||||||
signature_blob = ForeignKeyField(Blob, null=True)
|
signature_blob = ForeignKeyField(Blob, null=True, related_name='signature_blob')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
database = db
|
database = db
|
||||||
|
@ -1154,7 +1154,7 @@ class Tag(BaseModel):
|
||||||
(('repository', 'name'), False),
|
(('repository', 'name'), 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_ts'), True),
|
(('repository', 'name', 'lifetime_end'), True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue