# Generated by Django 3.0.8 on 2020-07-31 17:16

from django.db import migrations
import django_db_constraints.operations


class Migration(migrations.Migration):

    dependencies = [
        ('production', '0295_auto_20200730_0524'),
    ]

    operations = [
        migrations.RunSQL('''update production_operations set parent_id = null where parent_id = id'''),

        django_db_constraints.operations.AlterConstraints(
            name='operations',
            db_constraints={'Operations_not_cycled': 'CHECK ("id" != "parent_id")'},
        ),
    ]
