# Generated by Django 3.1 on 2020-08-05 08:45

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('production', '0302_auto_20200805_0825'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='launch_operations_item',
            name='Launch_operations_item_unique_constraint_0',
        ),
        migrations.RemoveConstraint(
            model_name='launch_operations_item',
            name='Launch_operations_item_unique_constraint_1',
        ),
        migrations.AddConstraint(
            model_name='launch_operations_item',
            constraint=models.UniqueConstraint(condition=models.Q(('color', None), ('operationitem', None)), fields=('item', 'launch', 'num', 'operation', 'props'), name='Launch_operations_item_unique_constraint_0'),
        ),
        migrations.AddConstraint(
            model_name='launch_operations_item',
            constraint=models.UniqueConstraint(condition=models.Q(operationitem=None), fields=('color', 'item', 'launch', 'num', 'operation', 'props'), name='Launch_operations_item_unique_constraint_1'),
        ),
        migrations.AddConstraint(
            model_name='launch_operations_item',
            constraint=models.UniqueConstraint(condition=models.Q(color=None), fields=('item', 'launch', 'num', 'operation', 'operationitem', 'props'), name='Launch_operations_item_unique_constraint_2'),
        ),
        migrations.AddConstraint(
            model_name='launch_operations_item',
            constraint=models.UniqueConstraint(fields=('color', 'item', 'launch', 'num', 'operation', 'operationitem', 'props'), name='Launch_operations_item_unique_constraint_3'),
        ),
    ]
