-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add migrations for previous commits
- Loading branch information
Showing
4 changed files
with
104 additions
and
113 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
...go/cantusdb_project/main_app/migrations/0031_alter_source_holding_institution_and_more.py
This file was deleted.
Oops, something went wrong.
104 changes: 104 additions & 0 deletions
104
...antusdb_project/main_app/migrations/0031_source_name_source_production_method_and_more.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,104 @@ | ||
# Generated by Django 4.2.14 on 2024-10-02 17:01 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("main_app", "0030_institution_is_private_collection"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="source", | ||
name="name", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="A colloquial or commonly-used name for the source", | ||
max_length=255, | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="source", | ||
name="production_method", | ||
field=models.IntegerField( | ||
choices=[(1, "Manuscript"), (2, "Printed")], | ||
default=1, | ||
verbose_name="Manuscript/Printed", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="source", | ||
name="source_completeness", | ||
field=models.IntegerField( | ||
choices=[ | ||
(1, "Full source"), | ||
(2, "Fragment/Fragmented"), | ||
(3, "Reconstruction"), | ||
], | ||
default=1, | ||
verbose_name="Full Source/Fragment", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="country", | ||
field=models.CharField(default="[No Country]", max_length=64), | ||
), | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="name", | ||
field=models.CharField(default="[No Name]", max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="source", | ||
name="shelfmark", | ||
field=models.CharField( | ||
default="[No Shelfmark]", | ||
help_text="Primary Cantus Database identifier for the source (e.g. library shelfmark, DACT ID, etc.)", | ||
max_length=255, | ||
), | ||
), | ||
migrations.CreateModel( | ||
name="SourceIdentifier", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("identifier", models.CharField(max_length=255)), | ||
( | ||
"type", | ||
models.IntegerField( | ||
choices=[ | ||
(1, "Other catalogues"), | ||
(2, "olim (Former shelfmark)"), | ||
(3, "Alternative names"), | ||
(4, "RISM Online"), | ||
] | ||
), | ||
), | ||
("note", models.TextField(blank=True, null=True)), | ||
( | ||
"source", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="identifiers", | ||
to="main_app.source", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Source Identifier", | ||
"ordering": ("type",), | ||
}, | ||
), | ||
] |
28 changes: 0 additions & 28 deletions
28
django/cantusdb_project/main_app/migrations/0032_source_name_alter_source_shelfmark.py
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
django/cantusdb_project/main_app/migrations/0033_sourceidentifier.py
This file was deleted.
Oops, something went wrong.