Skip to content

Commit ba73334

Browse files
rtibblesbotclaude
andcommitted
feat: add file_size_bigint column to LocalFile mirrors
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent da92f80 commit ba73334

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

contentcuration/kolibri_content/base_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class LocalFile(models.Model):
152152
)
153153
available = models.BooleanField(default=False)
154154
file_size = models.IntegerField(blank=True, null=True)
155+
file_size_bigint = models.BigIntegerField(blank=True, null=True)
155156

156157
class Meta:
157158
abstract = True
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from django.db import migrations
2+
from django.db import models
3+
4+
5+
class Migration(migrations.Migration):
6+
7+
dependencies = [
8+
("content", "0024_file_included_presets"),
9+
]
10+
11+
operations = [
12+
migrations.AddField(
13+
model_name="localfile",
14+
name="file_size_bigint",
15+
field=models.BigIntegerField(blank=True, null=True),
16+
),
17+
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from django.db import migrations
2+
from django.db import models
3+
4+
5+
class Migration(migrations.Migration):
6+
7+
dependencies = [
8+
("kolibri_public", "0009_file_included_presets"),
9+
]
10+
11+
operations = [
12+
migrations.AddField(
13+
model_name="localfile",
14+
name="file_size_bigint",
15+
field=models.BigIntegerField(blank=True, null=True),
16+
),
17+
]

0 commit comments

Comments
 (0)