diff --git a/data/database.py b/data/database.py index 35dd3e66a..1f18b8d84 100644 --- a/data/database.py +++ b/data/database.py @@ -1030,10 +1030,10 @@ class BlobUploading(BaseModel): repository = ForeignKeyField(Repository, index=True) location = ForeignKeyField(BlobPlacementLocation) byte_count = IntegerField(default=0) - sha_state = ResumableSHA256Field(null=True, default=resumablehashlib.sha256) - storage_metadata = JSONField(null=True, default={}) - chunk_count = IntegerField(default=0) uncompressed_byte_count = IntegerField(null=True) + chunk_count = IntegerField(default=0) + storage_metadata = JSONField(null=True, default={}) + sha_state = ResumableSHA256Field(null=True, default=resumablehashlib.sha256) piece_sha_state = ResumableSHA1Field(null=True) piece_hashes = Base64BinaryField(null=True)