Increase max_length of image_md5_hash field to 64 in SeriesImage and LongSeriesImage models

This commit is contained in:
Ross
2025-09-02 21:22:06 +01:00
parent a7e0438290
commit 8a92460cb2
3 changed files with 37 additions and 1 deletions
@@ -0,0 +1,18 @@
# Generated by Django 5.1.4 on 2025-09-02 20:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atlas', '0073_casedisplayset_conditions_casedisplayset_findings_and_more'),
]
operations = [
migrations.AlterField(
model_name='seriesimage',
name='image_md5_hash',
field=models.CharField(blank=True, max_length=64, null=True),
),
]
+1 -1
View File
@@ -279,7 +279,7 @@ class SeriesImageBase(models.Model):
# The first is a md5 hash of the pixel array data
# this is used because I can't get the direct pixel data to match from cornerstone
# (and struggle to get blake3 working in the browser)
image_md5_hash = models.CharField(max_length=32, null=True, blank=True)
image_md5_hash = models.CharField(max_length=64, null=True, blank=True)
# The second is a blake3 hash of the direct pixel data
# This is much faster when using pydicom
@@ -0,0 +1,18 @@
# Generated by Django 5.1.4 on 2025-09-02 20:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('longs', '0032_longseries_total_image_size'),
]
operations = [
migrations.AlterField(
model_name='longseriesimage',
name='image_md5_hash',
field=models.CharField(blank=True, max_length=64, null=True),
),
]