From 80f8bcbe427ebf992b9fac03d3224ccc8ae265ac Mon Sep 17 00:00:00 2001 From: Alex Velez Date: Tue, 31 Mar 2026 09:47:58 -0500 Subject: [PATCH] Update ChannelVersion size field type to FloatField --- .../0165_alter_channelversion_size.py | 18 ++++++++++++++++++ contentcuration/contentcuration/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 contentcuration/contentcuration/migrations/0165_alter_channelversion_size.py diff --git a/contentcuration/contentcuration/migrations/0165_alter_channelversion_size.py b/contentcuration/contentcuration/migrations/0165_alter_channelversion_size.py new file mode 100644 index 0000000000..9cbb08e7a3 --- /dev/null +++ b/contentcuration/contentcuration/migrations/0165_alter_channelversion_size.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.24 on 2026-03-31 14:45 +from django.db import migrations +from django.db import models + + +class Migration(migrations.Migration): + + dependencies = [ + ("contentcuration", "0164_add_channel_info_snapshot_to_channelversion"), + ] + + operations = [ + migrations.AlterField( + model_name="channelversion", + name="size", + field=models.FloatField(default=0), + ), + ] diff --git a/contentcuration/contentcuration/models.py b/contentcuration/contentcuration/models.py index 299317f828..4630f00529 100644 --- a/contentcuration/contentcuration/models.py +++ b/contentcuration/contentcuration/models.py @@ -1574,7 +1574,7 @@ class ChannelVersion(models.Model): SecretToken, on_delete=models.SET_NULL, null=True, blank=True ) version_notes = models.TextField(null=True, blank=True) - size = models.PositiveIntegerField(null=True, blank=True) + size = models.FloatField(default=0) date_published = models.DateTimeField(null=True, blank=True) resource_count = models.PositiveIntegerField(null=True, blank=True) kind_count = ArrayField(