# Generated by Django 5.0.9 on 2024-11-22 11:25

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('extras', '0121_customfield_related_object_filter'),
        ('sop_infra', '0014_prismaaccesslocation_sop_infra_prismaaccesslocation_name_none_and_more'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='prismacomputedaccesslocation',
            name='sop_infra_prismacomputedaccesslocation_name_none',
        ),
        migrations.RemoveConstraint(
            model_name='prismacomputedaccesslocation',
            name='sop_infra_prismacomputedaccesslocation_slug_none',
        ),
        migrations.RemoveConstraint(
            model_name='prismacomputedaccesslocation',
            name='sop_infra_prismacomputedaccesslocation_strata_id_none',
        ),
        migrations.AddConstraint(
            model_name='prismacomputedaccesslocation',
            constraint=models.CheckConstraint(check=models.Q(('name__isnull', False), ('slug__isnull', False), ('strata_id__isnull', False)), name='sop_infra_prismacomputedaccesslocation_name_slug_strataid_not_null', violation_error_message='Name, slug, and strata ID must all be set.'),
        ),
        migrations.AddConstraint(
            model_name='prismacomputedaccesslocation',
            constraint=models.CheckConstraint(check=models.Q(models.Q(('name', ''), _negated=True), models.Q(('slug', ''), _negated=True), models.Q(('strata_id', ''), _negated=True)), name='sop_infra_prismacomputedaccesslocation_name_slug_strataid_not_empty', violation_error_message='Name, slug, and strata ID cannot be empty strings.'),
        ),
    ]
