Skip to content

Commit d4f17a6

Browse files
authored
Merge pull request #5799 from AlexVelezLl/updates-size-field-type
Update ChannelVersion size field type to FloatField
2 parents 4c0bf11 + 80f8bcb commit d4f17a6

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.2.24 on 2026-03-31 14:45
2+
from django.db import migrations
3+
from django.db import models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("contentcuration", "0164_add_channel_info_snapshot_to_channelversion"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="channelversion",
15+
name="size",
16+
field=models.FloatField(default=0),
17+
),
18+
]

contentcuration/contentcuration/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ class ChannelVersion(models.Model):
15741574
SecretToken, on_delete=models.SET_NULL, null=True, blank=True
15751575
)
15761576
version_notes = models.TextField(null=True, blank=True)
1577-
size = models.PositiveIntegerField(null=True, blank=True)
1577+
size = models.FloatField(default=0)
15781578
date_published = models.DateTimeField(null=True, blank=True)
15791579
resource_count = models.PositiveIntegerField(null=True, blank=True)
15801580
kind_count = ArrayField(

0 commit comments

Comments
 (0)