# Generated by Django 4.2.27 on 2026-02-25 00:00

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion

EVE_SDE_REGION_MODEL = getattr(
    settings, "AACAMPAIGN_SDE_REGION_MODEL", "eve_sde.Region"
)
EVE_SDE_CONSTELLATION_MODEL = getattr(
    settings, "AACAMPAIGN_SDE_CONSTELLATION_MODEL", "eve_sde.Constellation"
)
EVE_SDE_SOLAR_SYSTEM_MODEL = getattr(
    settings, "AACAMPAIGN_SDE_SOLAR_SYSTEM_MODEL", "eve_sde.SolarSystem"
)


class Migration(migrations.Migration):
    dependencies = [
        ("aacampaign", "0005_campaign_last_run"),
        migrations.swappable_dependency(EVE_SDE_REGION_MODEL),
        migrations.swappable_dependency(EVE_SDE_CONSTELLATION_MODEL),
        migrations.swappable_dependency(EVE_SDE_SOLAR_SYSTEM_MODEL),
    ]

    operations = [
        migrations.AlterField(
            model_name="campaign",
            name="constellations",
            field=models.ManyToManyField(
                blank=True, related_name="campaigns", to=EVE_SDE_CONSTELLATION_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="campaign",
            name="regions",
            field=models.ManyToManyField(
                blank=True, related_name="campaigns", to=EVE_SDE_REGION_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="campaign",
            name="systems",
            field=models.ManyToManyField(
                blank=True, related_name="campaigns", to=EVE_SDE_SOLAR_SYSTEM_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="campaignkillmail",
            name="solar_system",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=EVE_SDE_SOLAR_SYSTEM_MODEL,
            ),
        ),
    ]
