summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-05-01 15:35:06 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-07-21 15:07:41 +0200
commit77cc44d668cd4d58ba1b03fd717cbbacc0688cad (patch)
treeeb0fb1ea1eb53461f387bd57c98862e89b419456 /archaeological_context_records
parent8f286a74789f5b1a33b88f1d605ad347023a6016 (diff)
downloadIshtar-77cc44d668cd4d58ba1b03fd717cbbacc0688cad.tar.bz2
Ishtar-77cc44d668cd4d58ba1b03fd717cbbacc0688cad.zip
🗃️ database migrations: django 3/4 - timezone
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/migrations/0123_add_timezone_django_v4.py162
1 files changed, 162 insertions, 0 deletions
diff --git a/archaeological_context_records/migrations/0123_add_timezone_django_v4.py b/archaeological_context_records/migrations/0123_add_timezone_django_v4.py
new file mode 100644
index 000000000..96f58b6ea
--- /dev/null
+++ b/archaeological_context_records/migrations/0123_add_timezone_django_v4.py
@@ -0,0 +1,162 @@
+# Generated by Django 4.2.19 on 2025-05-01 13:29
+
+import django.core.validators
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+import re
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('ishtar_common', '0264_add_timezone_django_v4'),
+ ('archaeological_context_records', '0122_cr_ishtar_users'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='historicalcontextrecord',
+ options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Context Record', 'verbose_name_plural': 'historical Context Record'},
+ ),
+ migrations.AlterField(
+ model_name='activitytype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='colortype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='created',
+ field=models.DateTimeField(blank=True, default=django.utils.timezone.now),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='data',
+ field=models.JSONField(blank=True, default=dict),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='geodata',
+ field=models.ManyToManyField(blank=True, related_name='related_items_%(app_label)s_%(class)s', to='ishtar_common.geovectordata', verbose_name='Geodata'),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='history_m2m',
+ field=models.JSONField(blank=True, default=dict),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='imports',
+ field=models.ManyToManyField(blank=True, related_name='imported_%(app_label)s_%(class)s', to='ishtar_common.import', verbose_name='Created by imports'),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='imports_updated',
+ field=models.ManyToManyField(blank=True, related_name='import_updated_%(app_label)s_%(class)s', to='ishtar_common.import', verbose_name='Updated by imports'),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='ishtar_users',
+ field=models.ManyToManyField(blank=True, related_name='%(class)s_associated', to='ishtar_common.ishtaruser'),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='last_modified',
+ field=models.DateTimeField(blank=True, default=django.utils.timezone.now),
+ ),
+ migrations.AlterField(
+ model_name='contextrecord',
+ name='main_geodata',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='main_related_items_%(app_label)s_%(class)s', to='ishtar_common.geovectordata', verbose_name='Main geodata'),
+ ),
+ migrations.AlterField(
+ model_name='datingquality',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='datingtype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='documentationtype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='excavationtechnictype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='historicalcontextrecord',
+ name='created',
+ field=models.DateTimeField(blank=True, default=django.utils.timezone.now),
+ ),
+ migrations.AlterField(
+ model_name='historicalcontextrecord',
+ name='data',
+ field=models.JSONField(blank=True, default=dict),
+ ),
+ migrations.AlterField(
+ model_name='historicalcontextrecord',
+ name='history_date',
+ field=models.DateTimeField(db_index=True),
+ ),
+ migrations.AlterField(
+ model_name='historicalcontextrecord',
+ name='history_m2m',
+ field=models.JSONField(blank=True, default=dict),
+ ),
+ migrations.AlterField(
+ model_name='historicalcontextrecord',
+ name='last_modified',
+ field=models.DateTimeField(blank=True, default=django.utils.timezone.now),
+ ),
+ migrations.AlterField(
+ model_name='identificationtype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='inclusiontype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='recordrelations',
+ name='imports',
+ field=models.ManyToManyField(blank=True, related_name='imported_%(app_label)s_%(class)s', to='ishtar_common.import', verbose_name='Created by imports'),
+ ),
+ migrations.AlterField(
+ model_name='recordrelations',
+ name='imports_updated',
+ field=models.ManyToManyField(blank=True, related_name='import_updated_%(app_label)s_%(class)s', to='ishtar_common.import', verbose_name='Updated by imports'),
+ ),
+ migrations.AlterField(
+ model_name='relationtype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='structuretype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='texturetype',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ migrations.AlterField(
+ model_name='unit',
+ name='txt_idx',
+ field=models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid')], verbose_name='Textual ID'),
+ ),
+ ]