-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
readux_ingest_ecds/migrations/0001_squashed_0005_alter_bulk_volume_files.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
}, | ||
), | ||
] |