from __future__ import unicode_literals
from __future__ import absolute_import

from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations

migrator = RawSQLMigration(('custom', 'icds_reports', 'migrations', 'sql_templates'))


class Migration(migrations.Migration):

    dependencies = [
        ('icds_reports', '0069_valid_visits'),
    ]

    operations = [
        migrations.AddField(
            model_name='CcsRecordMonthlyView',
            name='open_in_month',
            field=models.SmallIntegerField(blank=True, null=True),
        ),
    ]
    operations.extend(get_view_migrations())

from __future__ import unicode_literals
from __future__ import absolute_import

from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations

migrator = RawSQLMigration(('custom', 'icds_reports', 'migrations', 'sql_templates'))


class Migration(migrations.Migration):

    dependencies = [
        ('icds_reports', '0069_valid_visits'),
    ]

    operations = [
    ]
    operations.extend(get_view_migrations())

Remove adding field to View model
Remove adding field to View model

  from __future__ import unicode_literals
  from __future__ import absolute_import
  
  from django.db import migrations, models
  from corehq.sql_db.operations import RawSQLMigration
  from custom.icds_reports.utils.migrations import get_view_migrations
  
  migrator = RawSQLMigration(('custom', 'icds_reports', 'migrations', 'sql_templates'))
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('icds_reports', '0069_valid_visits'),
      ]
  
      operations = [
-         migrations.AddField(
-             model_name='CcsRecordMonthlyView',
-             name='open_in_month',
-             field=models.SmallIntegerField(blank=True, null=True),
-         ),
      ]
      operations.extend(get_view_migrations())
  
Remove adding field to View model
## Code Before:
from __future__ import unicode_literals
from __future__ import absolute_import

from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations

migrator = RawSQLMigration(('custom', 'icds_reports', 'migrations', 'sql_templates'))


class Migration(migrations.Migration):

    dependencies = [
        ('icds_reports', '0069_valid_visits'),
    ]

    operations = [
        migrations.AddField(
            model_name='CcsRecordMonthlyView',
            name='open_in_month',
            field=models.SmallIntegerField(blank=True, null=True),
        ),
    ]
    operations.extend(get_view_migrations())

## Instruction:
Remove adding field to View model
## Code After:
from __future__ import unicode_literals
from __future__ import absolute_import

from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations

migrator = RawSQLMigration(('custom', 'icds_reports', 'migrations', 'sql_templates'))


class Migration(migrations.Migration):

    dependencies = [
        ('icds_reports', '0069_valid_visits'),
    ]

    operations = [
    ]
    operations.extend(get_view_migrations())
