From 8a2afb7cd070c6f2d27f49c855a35607387b08fa Mon Sep 17 00:00:00 2001 From: Jayan Date: Sun, 11 Jan 2026 21:39:10 +0000 Subject: [PATCH] Fix #1833: Change varchar(1024) fields to TextField Update ProjectMessage.traceback and CodebaseResource.path to use TextField instead of CharField to prevent 'value too long' errors when scanning packages with long paths or error messages. Changes: - ProjectMessage.traceback: CharField(1024) -> TextField - CodebaseResource.path: CharField(1024) -> TextField Fixes #1833 Signed-off-by: NullPointer-cell --- .../0077_increase_field_lengths_1833.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scanpipe/migrations/0077_increase_field_lengths_1833.py diff --git a/scanpipe/migrations/0077_increase_field_lengths_1833.py b/scanpipe/migrations/0077_increase_field_lengths_1833.py new file mode 100644 index 0000000000..019421bf03 --- /dev/null +++ b/scanpipe/migrations/0077_increase_field_lengths_1833.py @@ -0,0 +1,22 @@ +# Generated manually for issue #1833 +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('scanpipe', '0076_discoveredpackagescore_scorecardcheck_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='projectmessage', + name='traceback', + field=models.TextField(blank=True), + ), + migrations.AlterField( + model_name='codebaseresource', + name='path', + field=models.TextField(help_text='The full path value of a resource.'), + ), + ]