Skip to content

Commit

Permalink
feat: make storage_path nullable on upload (#471)
Browse files Browse the repository at this point in the history
* feat: make storage_path nullable on upload

* update migrations

* make storage path null risky migration
  • Loading branch information
joseph-sentry authored Jan 17, 2025
1 parent fe16480 commit 3a2414f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.2.16 on 2025-01-16 16:34

from django.db import migrations, models

from shared.django_apps.migration_utils import RiskyAlterField


class Migration(migrations.Migration):
dependencies = [
("reports", "0036_upload_indices_part2"),
]

operations = [
RiskyAlterField(
model_name="reportsession",
name="storage_path",
field=models.TextField(null=True),
),
]
2 changes: 1 addition & 1 deletion shared/django_apps/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class ReportSession(
"CommitReport", related_name="sessions", on_delete=models.CASCADE
)
state = models.CharField(max_length=100)
storage_path = models.TextField()
storage_path = models.TextField(null=True)
order_number = models.IntegerField(null=True)
upload_type = models.CharField(max_length=100, default="uploaded")
upload_extras = models.JSONField(default=dict)
Expand Down

0 comments on commit 3a2414f

Please sign in to comment.