# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations
from corehq.apps.cleanup.pillow_migrations import migrate_legacy_pillows, noop_reverse_migration
from corehq.sql_db.operations import HqRunPython


def migrate_mvp_pillows(apps, schema_editor):
    pillow_names = [
        "MVPFormIndicatorPillow",
        "MVPCaseIndicatorPillow",
    ]
    migrate_legacy_pillows(apps, pillow_names)


class Migration(migrations.Migration):

    dependencies = [
        ('cleanup', '0004_convert_ucr_checkpoints_to_sql'),
    ]

    operations = [
        HqRunPython(migrate_mvp_pillows, noop_reverse_migration)
    ]
