# Generated by Django 3.1 on 2020-08-07 00:17

import bitfield.models
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('production', '0305_auto_20200806_1409'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='launch_item_refs',
            name='Launch_item_refs_unique_constraint_0',
        ),
        migrations.RemoveConstraint(
            model_name='launch_item_refs',
            name='Launch_item_refs_unique_constraint_1',
        ),
        migrations.AlterField(
            model_name='operations',
            name='props',
            field=bitfield.models.BitField((('assemly', 'Операция комплектации'), ('made_common_form', 'Формировать общий документ'), ('transportation', 'Операция транспортировки'), ('absorption', 'Операция поглощения')), db_index=True, default=0),
        ),
        migrations.AddConstraint(
            model_name='launch_item_refs',
            constraint=models.UniqueConstraint(condition=models.Q(parent=None), fields=('child', 'launch'), name='Launch_item_refs_unique_constraint_0'),
        ),
        migrations.AddConstraint(
            model_name='launch_item_refs',
            constraint=models.UniqueConstraint(fields=('child', 'launch', 'parent'), name='Launch_item_refs_unique_constraint_1'),
        ),
    ]
