Skip to content

Commit 39e4e30

Browse files
committed
Add the corresponding migration file.
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent 1840308 commit 39e4e30

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Generated by Django 4.2.22 on 2025-10-22 11:56
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("vulnerabilities", "0102_alter_impactedpackage_affecting_vers_and_more"),
10+
]
11+
12+
operations = [
13+
migrations.RemoveField(
14+
model_name="codefixv2",
15+
name="affected_package",
16+
),
17+
migrations.RemoveField(
18+
model_name="codefixv2",
19+
name="fixed_package",
20+
),
21+
migrations.AddField(
22+
model_name="impactedpackage",
23+
name="affected_by_commits",
24+
field=models.ManyToManyField(
25+
help_text="Commits that are affected by this impact.",
26+
related_name="affected_commits_impacts",
27+
to="vulnerabilities.codefixv2",
28+
),
29+
),
30+
migrations.AddField(
31+
model_name="impactedpackage",
32+
name="fixed_by_commits",
33+
field=models.ManyToManyField(
34+
help_text="Commits that fix the vulnerability in this impact.",
35+
related_name="fixed_commits_impacts",
36+
to="vulnerabilities.codefixv2",
37+
),
38+
),
39+
migrations.AlterField(
40+
model_name="advisoryreference",
41+
name="reference_type",
42+
field=models.CharField(
43+
blank=True,
44+
choices=[
45+
("advisory", "Advisory"),
46+
("exploit", "Exploit"),
47+
("commit", "Commit"),
48+
("mailing_list", "Mailing List"),
49+
("bug", "Bug"),
50+
("other", "Other"),
51+
],
52+
max_length=20,
53+
),
54+
),
55+
]

0 commit comments

Comments
 (0)