From 6820cbb9808700c474ada3f633eddfc064cb6995 Mon Sep 17 00:00:00 2001 From: Prakhar Pratyush Date: Thu, 14 Nov 2024 10:38:19 +0530 Subject: [PATCH] realm_export: Change tarball_size_bytes to PositiveBigIntegerField. This commit updates `tarball_size_bytes` field from `PositiveIntegerField` to `PositiveBigIntegerField` to support larger values. --- ...0624_alter_realmexport_tarball_size_bytes.py | 17 +++++++++++++++++ zerver/models/realms.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 zerver/migrations/0624_alter_realmexport_tarball_size_bytes.py diff --git a/zerver/migrations/0624_alter_realmexport_tarball_size_bytes.py b/zerver/migrations/0624_alter_realmexport_tarball_size_bytes.py new file mode 100644 index 0000000000..f5ae7c9482 --- /dev/null +++ b/zerver/migrations/0624_alter_realmexport_tarball_size_bytes.py @@ -0,0 +1,17 @@ +# Generated by Django 5.0.9 on 2024-11-14 05:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("zerver", "0623_merge_20241030_1835"), + ] + + operations = [ + migrations.AlterField( + model_name="realmexport", + name="tarball_size_bytes", + field=models.PositiveBigIntegerField(default=None, null=True), + ), + ] diff --git a/zerver/models/realms.py b/zerver/models/realms.py index 8a6ac401ed..00d52ece3f 100644 --- a/zerver/models/realms.py +++ b/zerver/models/realms.py @@ -1368,5 +1368,5 @@ class RealmExport(models.Model): acting_user = models.ForeignKey("UserProfile", null=True, on_delete=models.SET_NULL) export_path = models.TextField(default=None, null=True) sha256sum_hex = models.CharField(default=None, null=True, max_length=64) - tarball_size_bytes = models.PositiveIntegerField(default=None, null=True) + tarball_size_bytes = models.PositiveBigIntegerField(default=None, null=True) stats = models.JSONField(default=None, null=True)