Skip to content

Commit

Permalink
Fix initial migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed May 8, 2024
1 parent 95237a4 commit 8bae677
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions readux_ingest_ecds/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import readux_ingest_ecds.storages
import uuid

Manifest = settings.IIIF_MANIFEST_MODEL
ImageServer = settings.IIIF_IMAGE_SERVER_MODEL
Collection = settings.IIIF_COLLECTION_MODEL

class Migration(migrations.Migration):

Expand All @@ -21,10 +24,10 @@ class Migration(migrations.Migration):
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')),
('collections', models.ManyToManyField(blank=True, help_text='Optional: Collections to attach to the volume ingested in this form.', related_name='ecds_ingest_collections', to=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')),
('image_server', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_ingest_image_server', to=ImageServer)),
('manifest', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_ingest_manifest', to=Manifest)),
('bundle_path', models.CharField(blank=True, max_length=1000)),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
],
Expand All @@ -36,9 +39,9 @@ class Migration(migrations.Migration):
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')),
('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=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')),
('image_server', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_bulk_ingest_image_server', to=ImageServer)),
('volume_files', models.FileField(null=True, storage=readux_ingest_ecds.storages.TmpStorage, upload_to=readux_ingest_ecds.models.bulk_path)),
],
options={
Expand Down

0 comments on commit 8bae677

Please sign in to comment.