# Generated by Django 5.0.6 on 2024-09-07 08:41

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('dcim', '0187_alter_device_vc_position'),
        ('extras', '0115_convert_dashboard_widgets'),
        ('netbox_svm', '0008_software_release_types_and_more'),
        ('virtualization', '0038_virtualdisk'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='softwareproductinstallation',
            name='netbox_svm_softwareproductinstallation_platform',
        ),
        migrations.AddConstraint(
            model_name='softwareproductinstallation',
            constraint=models.CheckConstraint(check=models.Q(models.Q(('cluster__isnull', True), ('device__isnull', False), ('virtualmachine__isnull', True)), models.Q(('cluster__isnull', True), ('device__isnull', True), ('virtualmachine__isnull', False)), models.Q(('cluster__isnull', False), ('device__isnull', True), ('virtualmachine__isnull', True)), _connector='OR'), name='netbox_svm_softwareproductinstallation_resource', violation_error_message='Installation requires exactly one resource destination.'),
        ),
    ]
