From e8b36969057e80cf6bdf7206076026f56984b538 Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Thu, 18 Jan 2024 17:40:41 -0500 Subject: [PATCH] Use PositiveBigIntegerField for node memory field --- ...006_jobpod_node_alter_job_aws_alter_job_duration_and_more.py | 2 +- analytics/analytics/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/analytics/analytics/migrations/0006_jobpod_node_alter_job_aws_alter_job_duration_and_more.py b/analytics/analytics/migrations/0006_jobpod_node_alter_job_aws_alter_job_duration_and_more.py index cb8e34c3b..bcd75eb28 100644 --- a/analytics/analytics/migrations/0006_jobpod_node_alter_job_aws_alter_job_duration_and_more.py +++ b/analytics/analytics/migrations/0006_jobpod_node_alter_job_aws_alter_job_duration_and_more.py @@ -71,7 +71,7 @@ class Migration(migrations.Migration): ("name", models.CharField(max_length=64)), ("system_uuid", models.UUIDField()), ("cpu", models.PositiveIntegerField()), - ("memory", models.PositiveIntegerField()), + ("memory", models.PositiveBigIntegerField()), ( "capacity_type", models.CharField( diff --git a/analytics/analytics/models.py b/analytics/analytics/models.py index 096ade3d1..d0be5ec1f 100644 --- a/analytics/analytics/models.py +++ b/analytics/analytics/models.py @@ -11,7 +11,7 @@ class Node(models.Model): name = models.CharField(max_length=64) system_uuid = models.UUIDField() cpu = models.PositiveIntegerField() - memory = models.PositiveIntegerField() + memory = models.PositiveBigIntegerField() capacity_type = models.CharField(max_length=12, choices=NodeCapacityType.choices) instance_type = models.CharField(max_length=32)