Skip to content

Commit

Permalink
Add migration files #98
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Nov 14, 2024
1 parent 750b65a commit 5f82ebb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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),
),
]
Original file line number Diff line number Diff line change
@@ -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),
),
]

0 comments on commit 5f82ebb

Please sign in to comment.