-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new resolved_to field on DiscoveredDependency #1066
And refine existing fields of the model Signed-off-by: tdruez <[email protected]>
- Loading branch information
Showing
5 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
scanpipe/migrations/0058_discovereddependency_resolved_to_and_more.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,53 @@ | ||
# Generated by Django 5.0.4 on 2024-05-17 07:11 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("scanpipe", "0057_rename_symbol_collection_pipelines"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="discovereddependency", | ||
name="resolved_to", | ||
field=models.ForeignKey( | ||
blank=True, | ||
editable=False, | ||
help_text="The package that this dependency resolves to. If empty, it indicates the dependency is unresolved.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="resolved_dependencies", | ||
to="scanpipe.discoveredpackage", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="discovereddependency", | ||
name="datafile_resource", | ||
field=models.ForeignKey( | ||
blank=True, | ||
editable=False, | ||
help_text="The codebase resource (e.g., manifest or lockfile) that declares this dependency.", | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="declared_dependencies", | ||
to="scanpipe.codebaseresource", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="discovereddependency", | ||
name="for_package", | ||
field=models.ForeignKey( | ||
blank=True, | ||
editable=False, | ||
help_text="The package that declares this dependency.", | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="declared_dependencies", | ||
to="scanpipe.discoveredpackage", | ||
), | ||
), | ||
] |
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
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
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
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