Increase max_length of image_md5_hash field to 64 in SeriesImage and LongSeriesImage models
This commit is contained in:
@@ -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
@@ -279,7 +279,7 @@ class SeriesImageBase(models.Model):
|
|||||||
# The first is a md5 hash of the pixel array data
|
# 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
|
# 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)
|
# (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
|
# The second is a blake3 hash of the direct pixel data
|
||||||
# This is much faster when using pydicom
|
# 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),
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user