# Generated by Django 5.2.8 on 2025-11-27 16:22

import authentik.admin.files.fields
from django.db import migrations


def clear_cache(apps, schema_editor):
    CacheEntry = apps.get_model("django_postgres_cache", "CacheEntry")
    db_alias = schema_editor.connection.alias

    CacheEntry.objects.using(db_alias).all().delete()


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_core", "0053_alter_application_slug_alter_source_slug"),
        ("django_postgres_cache", "0001_initial"),
    ]

    operations = [
        migrations.AlterField(
            model_name="application",
            name="meta_icon",
            field=authentik.admin.files.fields.FileField(blank=True, default=""),
        ),
        migrations.AlterField(
            model_name="source",
            name="icon",
            field=authentik.admin.files.fields.FileField(blank=True, default=""),
        ),
        migrations.RunPython(code=clear_cache),
    ]
