-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base set of changes for the CodebaseResource migration #569
Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
9 changed files
with
144 additions
and
50 deletions.
There are no files selected for viewing
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
49 changes: 49 additions & 0 deletions
49
scanpipe/migrations/0032_remove_codebaseresource_license_expressions_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,49 @@ | ||
# Generated by Django 4.2 on 2023-05-05 15:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("scanpipe", "0031_scancode_toolkit_v32_data_updates"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="codebaseresource", | ||
name="license_expressions", | ||
), | ||
migrations.RemoveField( | ||
model_name="codebaseresource", | ||
name="licenses", | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="detected_license_expression", | ||
field=models.TextField(blank=True, help_text=""), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="detected_license_expression_spdx", | ||
field=models.TextField(blank=True, help_text=""), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="license_clues", | ||
field=models.JSONField( | ||
blank=True, default=list, help_text="List of license clues." | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="license_detections", | ||
field=models.JSONField( | ||
blank=True, default=list, help_text="List of license detection details." | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="percentage_of_license_text", | ||
field=models.FloatField(blank=True, help_text="", null=True), | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
scanpipe/migrations/0033_alter_codebaseresource_detected_license_expression_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,27 @@ | ||
# Generated by Django 4.2 on 2023-05-05 15:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("scanpipe", "0032_remove_codebaseresource_license_expressions_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="codebaseresource", | ||
name="detected_license_expression", | ||
field=models.TextField(blank=True, help_text=""), | ||
), | ||
migrations.AlterField( | ||
model_name="codebaseresource", | ||
name="detected_license_expression_spdx", | ||
field=models.TextField(blank=True, help_text=""), | ||
), | ||
migrations.AlterField( | ||
model_name="codebaseresource", | ||
name="percentage_of_license_text", | ||
field=models.FloatField(blank=True, help_text="", 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
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