# Generated by Django 5.2.12 on 2026-08-02 08:17

from django.db import migrations, models


def template_to_link(apps, schema_editor):
    """Template links were merged back into plain links."""
    Link = apps.get_model('links', 'Link')
    Link.objects.filter(link_type='TEMPLATE').update(link_type='LINK')


class Migration(migrations.Migration):

    dependencies = [
        ('links', '0054_add_template_link_type'),
    ]

    operations = [
        migrations.RunPython(template_to_link, migrations.RunPython.noop),
        migrations.AlterField(
            model_name='link',
            name='link_type',
            field=models.CharField(choices=[('LINK', 'Link'), ('CUSTOM', 'Custom'), ('ACTION', 'Action')], default='LINK', max_length=10),
        ),
    ]
