# Generated by Django 5.2.12 on 2026-05-23 13:48

from django.db import migrations


def convert_nulls_to_empty(apps, schema_editor):
    CavalibaConfiguration = apps.get_model('app_home', 'CavalibaConfiguration')
    for field in ['value', 'description']:
        CavalibaConfiguration.objects.filter(**{f'{field}__isnull': True}).update(**{field: ''})


def reverse_convert(apps, schema_editor):
    pass


class Migration(migrations.Migration):

    dependencies = [
        ('app_home', '0002_rename_app_home_ca_keyname_6521bc_idx_api_stat_keyname_446f19_idx_and_more'),
    ]

    operations = [
        migrations.RunPython(convert_nulls_to_empty, reverse_convert),
    ]
