Skip to content

Commit 0112880

Browse files
committed
Increase length for advisory ID
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 3407b4a commit 0112880

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Generated by Django 4.2.22 on 2025-07-03 16:32
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("vulnerabilities", "0096_alter_pipelineschedule_run_interval"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="advisoryv2",
15+
name="advisory_id",
16+
field=models.CharField(
17+
help_text="An advisory is a unique vulnerability identifier in some database, such as PYSEC-2020-2233",
18+
max_length=500,
19+
),
20+
),
21+
migrations.AlterField(
22+
model_name="advisoryv2",
23+
name="datasource_id",
24+
field=models.CharField(
25+
help_text="Unique ID for the datasource used for this advisory .e.g.: nginx_importer_v2",
26+
max_length=200,
27+
),
28+
),
29+
]

vulnerabilities/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,15 +2657,15 @@ class AdvisoryV2(models.Model):
26572657

26582658
# This is similar to a type or a namespace
26592659
datasource_id = models.CharField(
2660-
max_length=100,
2660+
max_length=200,
26612661
blank=False,
26622662
null=False,
26632663
help_text="Unique ID for the datasource used for this advisory ." "e.g.: nginx_importer_v2",
26642664
)
26652665

26662666
# This is similar to a name
26672667
advisory_id = models.CharField(
2668-
max_length=50,
2668+
max_length=500,
26692669
blank=False,
26702670
null=False,
26712671
unique=False,

0 commit comments

Comments
 (0)