Skip to content

Commit

Permalink
Merge pull request #92 from OpenGeoscience/file-size-field
Browse files Browse the repository at this point in the history
Change `FileItem.file_size` to `PositiveBigIntegerField`
  • Loading branch information
annehaley authored Jan 10, 2025
2 parents a4f9dd5 + 0562ccd commit c344380
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions uvdat/core/migrations/0009_file_size_field.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.7 on 2024-12-20 17:59

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0008_curbs_aid_simulation'),
]

operations = [
migrations.AlterField(
model_name='fileitem',
name='file_size',
field=models.PositiveBigIntegerField(null=True),
),
]
2 changes: 1 addition & 1 deletion uvdat/core/models/file_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FileItem(TimeStampedModel):
chart = models.ForeignKey(Chart, on_delete=models.CASCADE, null=True)
file = S3FileField()
file_type = models.CharField(max_length=25)
file_size = models.IntegerField(null=True)
file_size = models.PositiveBigIntegerField(null=True)
metadata = models.JSONField(blank=True, null=True)
index = models.IntegerField(null=True)

Expand Down

0 comments on commit c344380

Please sign in to comment.