diff --git a/component_catalog/migrations/0012_alter_component_risk_score_alter_package_risk_score.py b/component_catalog/migrations/0012_alter_component_risk_score_alter_package_risk_score.py new file mode 100644 index 0000000..f11c7c4 --- /dev/null +++ b/component_catalog/migrations/0012_alter_component_risk_score_alter_package_risk_score.py @@ -0,0 +1,23 @@ +# Generated by Django 5.0.9 on 2024-11-14 12:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('component_catalog', '0011_to_delete_temp_fake_values'), + ] + + operations = [ + migrations.AlterField( + model_name='component', + name='risk_score', + field=models.DecimalField(blank=True, decimal_places=2, help_text='Risk score between 0.00 and 10.00, where higher values indicate greater vulnerability risk for the package.', max_digits=4, null=True), + ), + migrations.AlterField( + model_name='package', + name='risk_score', + field=models.DecimalField(blank=True, decimal_places=2, help_text='Risk score between 0.00 and 10.00, where higher values indicate greater vulnerability risk for the package.', max_digits=4, null=True), + ), + ] diff --git a/vulnerabilities/migrations/0004_alter_vulnerability_exploitability_and_more.py b/vulnerabilities/migrations/0004_alter_vulnerability_exploitability_and_more.py new file mode 100644 index 0000000..87070fe --- /dev/null +++ b/vulnerabilities/migrations/0004_alter_vulnerability_exploitability_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 5.0.9 on 2024-11-14 12:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('vulnerabilities', '0003_to_delete_temp_fake_values'), + ] + + operations = [ + migrations.AlterField( + model_name='vulnerability', + name='exploitability', + field=models.DecimalField(blank=True, decimal_places=2, help_text='Exploitability indicates the likelihood that a vulnerability in a software package could be used by malicious actors to compromise systems, applications, or networks. This metric is determined automatically based on the discovery of known exploits.', max_digits=4, null=True), + ), + migrations.AlterField( + model_name='vulnerability', + name='risk_score', + field=models.DecimalField(blank=True, decimal_places=2, help_text='Risk score from 0.00 to 10.00, with higher values indicating greater vulnerability risk. This score is the maximum of the weighted severity multiplied by exploitability, capped at 10.', max_digits=4, null=True), + ), + migrations.AlterField( + model_name='vulnerability', + name='weighted_severity', + field=models.DecimalField(blank=True, decimal_places=2, help_text='Weighted severity is the highest value calculated by multiplying each severity by its corresponding weight, divided by 10.', max_digits=4, null=True), + ), + ]