-
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: remove timestamps from flake model (#456)
we don't require these fields for the Flake model
- Loading branch information
1 parent
e41a4a1
commit 2674ae9
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...ed/django_apps/reports/migrations/0034_remove_flake_created_at_remove_flake_updated_at.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,35 @@ | ||
# Generated by Django 4.2.16 on 2024-12-13 15:44 | ||
|
||
from django.db import migrations | ||
|
||
from shared.django_apps.migration_utils import RiskyRemoveField | ||
|
||
""" | ||
BEGIN; | ||
-- | ||
-- Remove field created_at from flake | ||
-- | ||
ALTER TABLE "reports_flake" DROP COLUMN "created_at" CASCADE; | ||
-- | ||
-- Remove field updated_at from flake | ||
-- | ||
ALTER TABLE "reports_flake" DROP COLUMN "updated_at" CASCADE; | ||
COMMIT; | ||
""" | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("reports", "0033_alter_testinstance_duration_seconds"), | ||
] | ||
|
||
operations = [ | ||
RiskyRemoveField( | ||
model_name="flake", | ||
name="created_at", | ||
), | ||
RiskyRemoveField( | ||
model_name="flake", | ||
name="updated_at", | ||
), | ||
] |
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