Skip to content

Commit

Permalink
Squash manifests RelatedLink migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 5, 2023
1 parent 60f3862 commit b2bde28
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 66 deletions.
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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",
Expand All @@ -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),
]

This file was deleted.

20 changes: 0 additions & 20 deletions apps/iiif/manifests/migrations/0059_alter_relatedlink_id.py

This file was deleted.

0 comments on commit b2bde28

Please sign in to comment.