# Generated by Django 3.1 on 2020-08-04 12:15

from django.db import migrations, models
import django.db.models.deletion
import isc_common.fields.related


class Migration(migrations.Migration):

    dependencies = [
        ('production', '0300_auto_20200804_1212'),
    ]

    operations = [
        migrations.AlterField(
            model_name='launch_operation_resources',
            name='operation_resources',
            field=isc_common.fields.related.ForeignKeySetNull(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='production.operation_resources'),
        ),
        migrations.AlterField(
            model_name='launch_operations_material',
            name='operation_material',
            field=isc_common.fields.related.ForeignKeySetNull(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='production.operation_material'),
        ),
        migrations.AlterUniqueTogether(
            name='launch_operations_item',
            unique_together=set(),
        ),
        migrations.AddConstraint(
            model_name='launch_operations_item',
            constraint=models.UniqueConstraint(condition=models.Q(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(fields=('item', 'launch', 'num', 'operation', 'operationitem', 'props'), name='Launch_operations_item_unique_constraint_1'),
        ),
    ]
