New migrations
# -*- coding: utf-8 -*-
-# Generated by Django 1.11.4 on 2017-08-08 09:11
+# Generated by Django 1.11.2 on 2017-08-24 07:57
from __future__ import unicode_literals
from django.db import migrations, models
@@ -27,6 +27,7 @@ class Migration(migrations.Migration):
('platform', models.CharField(blank=True, help_text='Package platform eg:maven', max_length=50)),
('name', models.CharField(blank=True, help_text='Package name', max_length=50)),
('version', models.CharField(blank=True, help_text='Package version', max_length=50)),
+ ('impacted_package', models.ManyToManyField(to='vulncode_app.ImpactedPackage')),
],
),
migrations.CreateModel(
@@ -59,7 +60,7 @@ class Migration(migrations.Migration):
name='VulnerabilityReference',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('source', models.CharField(blank=True, help_text="Source's name eg:NVD", max_length=50)),
+ ('source', models.CharField(blank=True, help_text='Source(s) name eg:NVD', max_length=50)),
('reference_id', models.CharField(blank=True, help_text='Reference ID, eg:CVE-ID', max_length=50)),
('url', models.URLField(blank=True, help_text='URL of Vulnerability data', max_length=1024)),
('vulnerability', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vulncode_app.Vulnerability')),
@@ -72,7 +73,7 @@ class Migration(migrations.Migration):
),
migrations.AddField(
model_name='impactedpackage',
- name='package',
+ name='package_fk',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vulncode_app.Package'),
),
migrations.AddField(
