From d696b3555740d3e26e1c2f2d51903ffbf619b275 Mon Sep 17 00:00:00 2001 From: Jay Varner Date: Fri, 19 Jul 2024 11:18:32 -0400 Subject: [PATCH] Add migration --- ...1_squashed_0005_alter_bulk_volume_files.py | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 readux_ingest_ecds/migrations/0001_squashed_0005_alter_bulk_volume_files.py diff --git a/readux_ingest_ecds/migrations/0001_squashed_0005_alter_bulk_volume_files.py b/readux_ingest_ecds/migrations/0001_squashed_0005_alter_bulk_volume_files.py new file mode 100644 index 0000000..96a55cf --- /dev/null +++ b/readux_ingest_ecds/migrations/0001_squashed_0005_alter_bulk_volume_files.py @@ -0,0 +1,50 @@ +# Generated by Django 3.2.23 on 2024-05-08 13:08 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import readux_ingest_ecds.models +import readux_ingest_ecds.storages +import uuid + + +class Migration(migrations.Migration): + + replaces = [('readux_ingest_ecds', '0001_initial'), ('readux_ingest_ecds', '0002_auto_20240201_1406'), ('readux_ingest_ecds', '0003_auto_20240313_1737'), ('readux_ingest_ecds', '0004_auto_20240313_1739'), ('readux_ingest_ecds', '0005_alter_bulk_volume_files')] + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Local', + fields=[ + ('metadata', models.JSONField(blank=True, default=dict)), + ('bundle', models.FileField(blank=True, null=True, storage=readux_ingest_ecds.storages.TmpStorage, upload_to=readux_ingest_ecds.models.local_tmp)), + ('collections', models.ManyToManyField(blank=True, help_text='Optional: Collections to attach to the volume ingested in this form.', related_name='ecds_ingest_collections', to='iiif.Collection')), + ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='ecds_ingest_created_locals', to=settings.AUTH_USER_MODEL)), + ('image_server', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_ingest_image_server', to='iiif.imageserver')), + ('manifest', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_ingest_manifest', to='iiif.manifest')), + ('bundle_path', models.CharField(blank=True, max_length=1000)), + ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), + ], + options={ + 'verbose_name_plural': 'Local', + }, + ), + migrations.CreateModel( + name='Bulk', + fields=[ + ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), + ('collections', models.ManyToManyField(blank=True, help_text='Optional: Collections to attach to the volume ingested in this form.', related_name='ecds_bulk_ingest_collections', to='iiif.Collection')), + ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='ecds_bulk_ingest_created_locals', to=settings.AUTH_USER_MODEL)), + ('image_server', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_bulk_ingest_image_server', to='iiif.imageserver')), + ('volume_files', models.FileField(null=True, storage=readux_ingest_ecds.storages.TmpStorage, upload_to=readux_ingest_ecds.models.bulk_path)), + ], + options={ + 'verbose_name_plural': 'Bulk', + }, + ), + ]