# Generated by Django 3.0.7 on 2020-06-19 09:14

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('ckk', '0226_auto_20200421_1007'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='item_refs',
            name='Item_refs_unique_1',
        ),
        migrations.RemoveConstraint(
            model_name='item_refs',
            name='Item_refs_unique_2',
        ),
        migrations.AddConstraint(
            model_name='item_refs',
            constraint=models.UniqueConstraint(condition=models.Q(parent_id=None), fields=('child_id', 'props'), name='Item_refs_unique_constraint_0'),
        ),
        migrations.AddConstraint(
            model_name='item_refs',
            constraint=models.UniqueConstraint(fields=('child_id', 'parent_id', 'props'), name='Item_refs_unique_constraint_1'),
        ),
    ]
