# Generated by Django 3.0.8 on 2020-07-15 22:31

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('planing', '0199_auto_20200714_0858'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='operation_refs',
            name='Operation_refs_unique_constraint_0',
        ),
        migrations.RemoveConstraint(
            model_name='operation_refs',
            name='Operation_refs_unique_constraint_1',
        ),
        migrations.AddConstraint(
            model_name='operation_refs',
            constraint=models.UniqueConstraint(condition=models.Q(('deleted_at', None), ('parent', None)), fields=('child', 'props'), name='Operation_refs_unique_constraint_0'),
        ),
        migrations.AddConstraint(
            model_name='operation_refs',
            constraint=models.UniqueConstraint(condition=models.Q(deleted_at=None), fields=('child', 'parent', 'props'), name='Operation_refs_unique_constraint_1'),
        ),
        migrations.AddConstraint(
            model_name='operation_refs',
            constraint=models.UniqueConstraint(condition=models.Q(parent=None), fields=('child', 'deleted_at', 'props'), name='Operation_refs_unique_constraint_2'),
        ),
        migrations.AddConstraint(
            model_name='operation_refs',
            constraint=models.UniqueConstraint(fields=('child', 'deleted_at', 'parent', 'props'), name='Operation_refs_unique_constraint_3'),
        ),
    ]
