Skip to content

Commit 4a4f142

Browse files
committed
Use text field to store version range string
Version range can be very long (>5000 char) for some advisory. Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent ffa58a6 commit 4a4f142

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

vulnerabilities/migrations/0100_remove_advisoryv2_affecting_packages_and_more.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 4.2.22 on 2025-07-22 09:15
1+
# Generated by Django 4.2.22 on 2025-07-28 18:30
22

33
from django.db import migrations, models
44
import django.db.models.deletion
@@ -38,18 +38,16 @@ class Migration(migrations.Migration):
3838
),
3939
(
4040
"affecting_vers",
41-
models.CharField(
41+
models.TextField(
4242
blank=True,
4343
help_text="VersionRange expression for package vulnerable to this impact.",
44-
max_length=500,
4544
),
4645
),
4746
(
4847
"fixed_vers",
49-
models.CharField(
48+
models.TextField(
5049
blank=True,
5150
help_text="VersionRange expression for packages fixing the vulnerable package in this impact.",
52-
max_length=500,
5351
),
5452
),
5553
(

0 commit comments

Comments
 (0)