-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dailytestrollup branch nullable
We've been seeing a bunch of errors related to this field not being nullable. This is because it's taking the branch from the commit, which _can_ be nullable. See: [error](https://codecov.sentry.io/share/issue/478a3e60158547b69afa0b9959822237/)
- Loading branch information
1 parent
f408749
commit a711b12
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
shared/django_apps/reports/migrations/0025_alter_dailytestrollup_branch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.15 on 2024-09-20 20:21 | ||
|
||
from django.db import migrations, models | ||
|
||
""" | ||
BEGIN; | ||
-- | ||
-- Alter field branch on dailytestrollup | ||
-- | ||
ALTER TABLE "reports_dailytestrollups" ALTER COLUMN "branch" DROP NOT NULL; | ||
COMMIT; | ||
""" | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("reports", "0024_auto_20240917_2121"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="dailytestrollup", | ||
name="branch", | ||
field=models.TextField(null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters