-
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.
fix: make TestInstance duration_seconds nullable (#398)
* feat: create LastRollupDate model this will be used in cache rollup cron to determine which repo branch combos to run the cache test rollups task for * fix: make TestInstance duration_seconds nullable * chore: make lint * fix: reorder migrations * fix: update duration_seconds->null migration
- Loading branch information
1 parent
d318691
commit 1a0a7ae
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/0033_alter_testinstance_duration_seconds.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.16 on 2024-11-27 14:46 | ||
|
||
from django.db import migrations, models | ||
|
||
""" | ||
BEGIN; | ||
-- | ||
-- Alter field duration_seconds on testinstance | ||
-- | ||
ALTER TABLE "reports_testinstance" ALTER COLUMN "duration_seconds" DROP NOT NULL; | ||
COMMIT; | ||
""" | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("reports", "0032_reportsession_reports_upload_order_number"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="testinstance", | ||
name="duration_seconds", | ||
field=models.FloatField(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