# Generated migration to fix cluster name uniqueness

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('planner', '0006_unified_status_refactor'),
    ]

    operations = [
        # Remove the old unique constraint on name field
        migrations.AlterField(
            model_name='clusters',
            name='name',
            field=models.CharField(db_index=True, max_length=255),
        ),
        # Add unique_together constraint for name, site, sector
        migrations.AlterUniqueTogether(
            name='clusters',
            unique_together={('name', 'site', 'sector')},
        ),
    ]
