# Generated by Django 4.2.30 on 2026-07-20 05:26

from django.db import migrations
from django.db.models import F


def populate_display_id(apps, schema_editor):
    AnalysisRun = apps.get_model('tianxuan_analysis', 'AnalysisRun')
    AnalysisRun.objects.filter(display_id__isnull=True).update(display_id=F('id'))


class Migration(migrations.Migration):

    dependencies = [
        ('tianxuan_analysis', '0006_analysisrun_display_id_analysisrun_llm_thinking_and_more'),
    ]

    operations = [
        migrations.RunPython(populate_display_id, migrations.RunPython.noop),
    ]
