summaryrefslogtreecommitdiff
path: root/archaeological_operations/migrations/0118_operator_reference_length.py
blob: 875d7a44246bbeb84a9da00eaa47c8377d0192a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Generated by Django 2.2.24 on 2024-06-06 16:09

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('archaeological_operations', '0117_data_migration_culturalattributiontype'),
    ]

    operations = [
        migrations.RunSQL(
            "UPDATE archaeological_operations_operation SET operator_reference='' WHERE operator_reference IS NULL;"
        ),
        migrations.RunSQL(
            "UPDATE archaeological_operations_historicaloperation SET operator_reference='' WHERE operator_reference IS NULL;"
        ),
        migrations.AlterField(
            model_name='historicaloperation',
            name='operator_reference',
            field=models.CharField(blank=True, default='', max_length=200, verbose_name='Operator reference'),
        ),
        migrations.AlterField(
            model_name='operation',
            name='operator_reference',
            field=models.CharField(blank=True, default='', max_length=200, verbose_name='Operator reference'),
        ),
    ]