Skip to content

Commit

Permalink
Fix migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Oct 7, 2024
1 parent 8399492 commit b80b9e1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 68 deletions.
17 changes: 0 additions & 17 deletions vulnerabilities/migrations/0072_remove_package_vulnerabilities.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Generated by Django 4.2.15 on 2024-10-07 11:39
# Generated by Django 4.2.15 on 2024-10-07 12:52

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("vulnerabilities", "0074_vulnerability_fixed_by_packages"),
("vulnerabilities", "0071_auto_20241007_1044"),
]

operations = [
migrations.RemoveField(
model_name="package",
name="vulnerabilities",
),
migrations.RemoveField(
model_name="vulnerability",
name="packages",
),
migrations.AddField(
model_name="package",
name="affected_by_vulnerabilities",
Expand All @@ -18,12 +26,21 @@ class Migration(migrations.Migration):
to="vulnerabilities.vulnerability",
),
),
migrations.AlterField(
migrations.AddField(
model_name="vulnerability",
name="affecting_packages",
field=models.ManyToManyField(
through="vulnerabilities.AffectedByPackageRelatedVulnerability",
to="vulnerabilities.package",
),
),
migrations.AddField(
model_name="vulnerability",
name="fixed_by_packages",
field=models.ManyToManyField(
related_name="fixing_vulnerabilities",
through="vulnerabilities.FixingPackageRelatedVulnerability",
to="vulnerabilities.package",
),
),
]

This file was deleted.

22 changes: 0 additions & 22 deletions vulnerabilities/migrations/0074_vulnerability_fixed_by_packages.py

This file was deleted.

0 comments on commit b80b9e1

Please sign in to comment.