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

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('domain_migration_flags', '0001_initial'),
        ('tzmigration', '0001_initial')
    ]

    operations = [
        migrations.RunSQL(
            """
            INSERT INTO domain_migration_flags_domainmigrationprogress (domain, migration_slug, migration_status)
            SELECT domain, 'tzmigration' as migration_slug, migration_status
            FROM tzmigration_timezonemigrationprogress
            """,
            ""
        )
    ]

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

from django.db import migrations, models

from corehq.sql_db.operations import HqRunSQL


class Migration(migrations.Migration):

    dependencies = [
        ('domain_migration_flags', '0001_initial'),
        ('tzmigration', '0001_initial')
    ]

    operations = [
        HqRunSQL(
            """
            INSERT INTO domain_migration_flags_domainmigrationprogress (domain, migration_slug, migration_status)
            SELECT domain, 'tzmigration' as migration_slug, migration_status
            FROM tzmigration_timezonemigrationprogress
            """,
            ""
        )
    ]

use HqRunSQL