Skip to content

Commit 966ff7f

Browse files
committed
change erratum synopsis from CharField(255) to TextField
EPEL 10.1 has errata with synopsis text exceeding 255 characters, causing psycopg2.errors.StringDataRightTruncation crash in get_or_create_erratum(). TextField removes the length constraint.
1 parent c92cebe commit 966ff7f

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.28 on 2026-05-02 03:49
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('errata', '0009_backfill_cached_counts'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='erratum',
15+
name='synopsis',
16+
field=models.TextField(),
17+
),
18+
]

errata/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Erratum(models.Model):
3333
name = models.CharField(max_length=255, unique=True)
3434
e_type = models.CharField(max_length=255)
3535
issue_date = models.DateTimeField()
36-
synopsis = models.CharField(max_length=255)
36+
synopsis = models.TextField()
3737
affected_packages = models.ManyToManyField(Package, blank=True, related_name='affected_by_erratum')
3838
fixed_packages = models.ManyToManyField(Package, blank=True, related_name='provides_fix_in_erratum')
3939
from operatingsystems.models import OSRelease

0 commit comments

Comments
 (0)