# Generated by Django 3.0.7 on 2020-06-17 08:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('ckk', '0226_auto_20200421_1007'),
        ('production', '0241_auto_20200617_0705'),
    ]

    operations = [
        migrations.AddField(
            model_name='launch_operation_resources',
            name='location',
            field=isc_common.fields.related.ForeignKeyProtect(default=None, on_delete=django.db.models.deletion.PROTECT, to='ckk.Locations'),
        ),
        migrations.AddConstraint(
            model_name='launch_operation_resources',
            constraint=models.UniqueConstraint(condition=models.Q(resource=None), fields=('launch_operationitem', 'location'), name='Launch_operation_resources_unique_constraint_2'),
        ),
        migrations.AddConstraint(
            model_name='launch_operation_resources',
            constraint=models.UniqueConstraint(fields=('launch_operationitem', 'location', 'resource'), name='Launch_operation_resources_unique_constraint_3'),
        ),
    ]
