-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cascade delete versions when corresponding change request is del…
…eted (#4152)
- Loading branch information
1 parent
c0f373a
commit baf8ddb
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
api/features/versioning/migrations/0003_cascade_delete_versions_on_cr_delete.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,20 @@ | ||
# Generated by Django 3.2.25 on 2024-06-12 14:43 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('workflows_core', '0009_prevent_cascade_delete_from_user_delete'), | ||
('feature_versioning', '0002_add_api_key_for_creation_and_publish'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='environmentfeatureversion', | ||
name='change_request', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='environment_feature_versions', to='workflows_core.changerequest'), | ||
), | ||
] |
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