From 2e91dc202b3238a3bdb2eb948251ae6e22934ff2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 6 Mar 2025 16:24:54 +1100 Subject: [PATCH] Fix for link length migration (#9249) - Found some fields which had not been migrated correctly --- .../InvenTree/build/migrations/0055_auto_20250221_1230.py | 4 +++- .../InvenTree/common/migrations/0035_auto_20250221_1513.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/build/migrations/0055_auto_20250221_1230.py b/src/backend/InvenTree/build/migrations/0055_auto_20250221_1230.py index db6289829b..78ebe1d8ed 100644 --- a/src/backend/InvenTree/build/migrations/0055_auto_20250221_1230.py +++ b/src/backend/InvenTree/build/migrations/0055_auto_20250221_1230.py @@ -14,6 +14,8 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='build', name='link', - field=models.TextField() # Temporary change to force new ALTER COLUMN operation in the next migration + field=models.TextField( + null=True, blank=True + ) # Temporary change to force new ALTER COLUMN operation in the next migration ), ] diff --git a/src/backend/InvenTree/common/migrations/0035_auto_20250221_1513.py b/src/backend/InvenTree/common/migrations/0035_auto_20250221_1513.py index 0eb6592fb6..99db26271a 100644 --- a/src/backend/InvenTree/common/migrations/0035_auto_20250221_1513.py +++ b/src/backend/InvenTree/common/migrations/0035_auto_20250221_1513.py @@ -13,6 +13,8 @@ class Migration(migrations.Migration): operations = [migrations.AlterField( model_name='attachment', name='link', - field=models.TextField() # Temporary change to force new ALTER COLUMN operation in the next migration + field=models.TextField( + null=True, blank=True + ) # Temporary change to force new ALTER COLUMN operation in the next migration ), ]