# Generated by Django 3.2.13 on 2022-06-10 09:01

from django.db import migrations, models


def forwards(apps, schema_editor):
    streetModel = apps.get_model('base_adresse', 'StreetModel')
    streetModel.objects.filter(ban_id='').update(ban_id=None)


class Migration(migrations.Migration):

    dependencies = [
        ('base_adresse', '0026_streetmodel_ban_id'),
    ]

    operations = [
        migrations.AlterField(
            model_name='streetmodel',
            name='ban_id',
            field=models.CharField(max_length=32, null=True, verbose_name='BAN Identifier'),
        ),
        migrations.RunPython(forwards),
        migrations.AlterUniqueTogether(
            name='streetmodel',
            unique_together={('resource', 'ban_id')},
        ),
        migrations.AddIndex(
            model_name='streetmodel',
            index=models.Index(fields=['resource', 'citycode'], name='base_adress_resourc_e0df5d_idx'),
        ),
    ]
