# Generated by Django 3.0.7 on 2020-06-21 07:43

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ('production', '0246_auto_20200619_0950'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='resource',
            name='Resource_unique_constraint_2',
        ),
        migrations.RemoveConstraint(
            model_name='resource',
            name='Resource_unique_constraint_3',
        ),
        migrations.RemoveConstraint(
            model_name='resource',
            name='Resource_unique_constraint_0',
        ),
        migrations.RemoveConstraint(
            model_name='resource',
            name='Resource_unique_constraint_1',
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(('calendar', None), ('code', None), ('name', None)), fields=('location',), name='Resource_unique_constraint_0'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(('calendar', None), ('code', None)), fields=('location', 'name'), name='Resource_unique_constraint_1'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(('calendar', None), ('name', None)), fields=('code', 'location'), name='Resource_unique_constraint_2'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(calendar=None), fields=('code', 'location', 'name'), name='Resource_unique_constraint_3'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(('code', None), ('name', None)), fields=('calendar', 'location'), name='Resource_unique_constraint_4'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(code=None), fields=('calendar', 'location', 'name'), name='Resource_unique_constraint_5'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(condition=models.Q(name=None), fields=('calendar', 'code', 'location'), name='Resource_unique_constraint_6'),
        ),
        migrations.AddConstraint(
            model_name='resource',
            constraint=models.UniqueConstraint(fields=('calendar', 'code', 'location', 'name'), name='Resource_unique_constraint_7'),
        ),
    ]
