From c5b2884c7ab060ff3516e31f59fe5872ca4dd931 Mon Sep 17 00:00:00 2001 From: Haiko Schol Date: Tue, 9 Jun 2020 20:24:16 +0200 Subject: [PATCH] Set max_length=100 for Package.version in initial migration I forgot to update this when switching to a newer release of packageurl-python, which has the limit set to 100. Since there is no production deployment of the project yet, I changed the existing migration instead of adding a new one that modifies the column. Signed-off-by: Haiko Schol --- vulnerabilities/migrations/0001_initial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulnerabilities/migrations/0001_initial.py b/vulnerabilities/migrations/0001_initial.py index 8e681e765..1855ad2dd 100644 --- a/vulnerabilities/migrations/0001_initial.py +++ b/vulnerabilities/migrations/0001_initial.py @@ -37,7 +37,7 @@ class Migration(migrations.Migration): ('type', models.CharField(blank=True, help_text='A short code to identify the type of this package. For example: gem for a Rubygem, docker for a container, pypi for a Python Wheel or Egg, maven for a Maven Jar, deb for a Debian package, etc.', max_length=16, null=True)), ('namespace', models.CharField(blank=True, help_text='Package name prefix, such as Maven groupid, Docker image owner, GitHub user or organization, etc.', max_length=255, null=True)), ('name', models.CharField(blank=True, help_text='Name of the package.', max_length=100, null=True)), - ('version', models.CharField(blank=True, help_text='Version of the package.', max_length=50, null=True)), + ('version', models.CharField(blank=True, help_text='Version of the package.', max_length=100, null=True)), ('qualifiers', models.CharField(blank=True, help_text='Extra qualifying data for a package such as the name of an OS, architecture, distro, etc.', max_length=1024, null=True)), ('subpath', models.CharField(blank=True, help_text='Extra subpath within a package, relative to the package root.', max_length=200, null=True)), ],