# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-02-09 15:19
from __future__ import unicode_literals

from django.db import migrations, models
import partial_index


class Migration(migrations.Migration):

    dependencies = [("budgetportal", "0011_govt-func-uniques")]

    operations = [
        migrations.AddField(
            model_name="department",
            name="is_vote_primary",
            field=models.BooleanField(default=True),
        ),
        migrations.AlterUniqueTogether(
            name="department",
            unique_together=set([("government", "slug"), ("government", "name")]),
        ),
        migrations.AddIndex(
            model_name="department",
            index=partial_index.PartialIndex(
                fields=[b"government", b"vote_number"],
                name="budgetporta_governm_531bf0_partial",
                unique=True,
                where=b"is_vote_primary",
                where_postgresql=b"",
                where_sqlite=b"",
            ),
        ),
    ]
