Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 3a2414f

Browse files
feat: make storage_path nullable on upload (#471)
* feat: make storage_path nullable on upload * update migrations * make storage path null risky migration
1 parent fe16480 commit 3a2414f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 4.2.16 on 2025-01-16 16:34
2+
3+
from django.db import migrations, models
4+
5+
from shared.django_apps.migration_utils import RiskyAlterField
6+
7+
8+
class Migration(migrations.Migration):
9+
dependencies = [
10+
("reports", "0036_upload_indices_part2"),
11+
]
12+
13+
operations = [
14+
RiskyAlterField(
15+
model_name="reportsession",
16+
name="storage_path",
17+
field=models.TextField(null=True),
18+
),
19+
]

shared/django_apps/reports/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class ReportSession(
187187
"CommitReport", related_name="sessions", on_delete=models.CASCADE
188188
)
189189
state = models.CharField(max_length=100)
190-
storage_path = models.TextField()
190+
storage_path = models.TextField(null=True)
191191
order_number = models.IntegerField(null=True)
192192
upload_type = models.CharField(max_length=100, default="uploaded")
193193
upload_extras = models.JSONField(default=dict)

0 commit comments

Comments
 (0)