diff --git a/apps/iiif/manifests/migrations/0060_relatedlink_is_structured_data.py b/apps/iiif/manifests/migrations/0058_alter_relatedlink.py similarity index 58% rename from apps/iiif/manifests/migrations/0060_relatedlink_is_structured_data.py rename to apps/iiif/manifests/migrations/0058_alter_relatedlink.py index dfaea844..cdb82b69 100644 --- a/apps/iiif/manifests/migrations/0060_relatedlink_is_structured_data.py +++ b/apps/iiif/manifests/migrations/0058_alter_relatedlink.py @@ -1,6 +1,7 @@ -# Generated by Django 3.2.12 on 2023-12-05 19:59 +# Generated by Django 3.2.12 on 2023-12-05 16:16 from django.db import migrations, models +import uuid def populate_is_structured_data(apps, schema_editor): @@ -17,10 +18,35 @@ def populate_is_structured_data(apps, schema_editor): class Migration(migrations.Migration): dependencies = [ - ("manifests", "0059_alter_relatedlink_id"), + ("manifests", "0057_alter_manifest_languages"), ] operations = [ + migrations.AlterField( + model_name="relatedlink", + name="id", + field=models.UUIDField( + default=uuid.uuid4, editable=False, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="relatedlink", + name="format", + field=models.CharField( + blank=True, + choices=[ + ("text/html", "HTML or web page"), + ("application/json", "JSON"), + ("application/ld+json", "JSON-LD"), + ("application/pdf", "PDF"), + ("text/plain", "Text"), + ("application/xml", "XML"), + ("application/octet-stream", "Other"), + ], + max_length=255, + null=True, + ), + ), migrations.AddField( model_name="relatedlink", name="is_structured_data", @@ -29,10 +55,5 @@ class Migration(migrations.Migration): help_text="True if this link is structured data that should appear in the manifest's 'seeAlso' field; if false, the link will appear in the 'related' field instead. Leave unchecked if unsure.", ), ), - migrations.AlterField( - model_name="relatedlink", - name="data_type", - field=models.CharField(default="Dataset", max_length=255), - ), migrations.RunPython(populate_is_structured_data, migrations.RunPython.noop), ] diff --git a/apps/iiif/manifests/migrations/0058_alter_relatedlink_format_and_data_type.py b/apps/iiif/manifests/migrations/0058_alter_relatedlink_format_and_data_type.py deleted file mode 100644 index 875e79d2..00000000 --- a/apps/iiif/manifests/migrations/0058_alter_relatedlink_format_and_data_type.py +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by Django 3.2.12 on 2023-12-05 16:16 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("manifests", "0057_alter_manifest_languages"), - ] - - operations = [ - migrations.AlterField( - model_name="relatedlink", - name="data_type", - field=models.CharField( - default="Dataset", - help_text="Leave as 'Dataset' for structured data describing this document (e.g. a remote manifest) and this link will appear in 'seeAlso'; change to any other value and it will only appear in the 'related' property of the manifest.", - max_length=255, - ), - ), - migrations.AlterField( - model_name="relatedlink", - name="format", - field=models.CharField( - blank=True, - choices=[ - ("text/html", "HTML or web page"), - ("application/json", "JSON"), - ("application/ld+json", "JSON-LD"), - ("application/pdf", "PDF"), - ("text/plain", "Text"), - ("application/xml", "XML"), - ("application/octet-stream", "Other"), - ], - max_length=255, - null=True, - ), - ), - ] diff --git a/apps/iiif/manifests/migrations/0059_alter_relatedlink_id.py b/apps/iiif/manifests/migrations/0059_alter_relatedlink_id.py deleted file mode 100644 index 20629c97..00000000 --- a/apps/iiif/manifests/migrations/0059_alter_relatedlink_id.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 3.2.12 on 2023-12-05 19:41 - -from django.db import migrations, models -import uuid - - -class Migration(migrations.Migration): - dependencies = [ - ("manifests", "0058_alter_relatedlink_format_and_data_type"), - ] - - operations = [ - migrations.AlterField( - model_name="relatedlink", - name="id", - field=models.UUIDField( - default=uuid.uuid4, editable=False, primary_key=True, serialize=False - ), - ), - ]