from __future__ import unicode_literals

from django.db import models, migrations

from query.operations import engine_specific


class Migration(migrations.Migration):

    dependencies = [
        ('query', '0016_auto_20160203_1324'),
    ]

    operations = [
        engine_specific(('mysql',),
            migrations.RunSQL(
                'alter table query_term modify word varchar(200) character set utf8 collate utf8_bin;',
                'alter table query_term modify word varchar(200) character set utf8 collate utf8_general_ci;'
            )
        ),
    ]

from __future__ import unicode_literals

from django.db import models, migrations

from query.operations import engine_specific


class Migration(migrations.Migration):

    dependencies = [
        ('query', '0016_auto_20160203_1324'),
    ]

    operations = [
        engine_specific(('mysql',),
            migrations.RunSQL(
                sql='alter table query_term modify word varchar(200) character set utf8 collate utf8_bin;',
                reverse_sql='alter table query_term modify word varchar(200) character set utf8 collate utf8_general_ci;'
            )
        ),
    ]

Use named arguments for RunSQL
Use named arguments for RunSQL

  from __future__ import unicode_literals
  
  from django.db import models, migrations
  
  from query.operations import engine_specific
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('query', '0016_auto_20160203_1324'),
      ]
  
      operations = [
          engine_specific(('mysql',),
              migrations.RunSQL(
-                 'alter table query_term modify word varchar(200) character set utf8 collate utf8_bin;',
+                 sql='alter table query_term modify word varchar(200) character set utf8 collate utf8_bin;',
-                 'alter table query_term modify word varchar(200) character set utf8 collate utf8_general_ci;'
+                 reverse_sql='alter table query_term modify word varchar(200) character set utf8 collate utf8_general_ci;'
              )
          ),
      ]
  
Use named arguments for RunSQL
## Code Before:
from __future__ import unicode_literals

from django.db import models, migrations

from query.operations import engine_specific


class Migration(migrations.Migration):

    dependencies = [
        ('query', '0016_auto_20160203_1324'),
    ]

    operations = [
        engine_specific(('mysql',),
            migrations.RunSQL(
                'alter table query_term modify word varchar(200) character set utf8 collate utf8_bin;',
                'alter table query_term modify word varchar(200) character set utf8 collate utf8_general_ci;'
            )
        ),
    ]

## Instruction:
Use named arguments for RunSQL
## Code After:
from __future__ import unicode_literals

from django.db import models, migrations

from query.operations import engine_specific


class Migration(migrations.Migration):

    dependencies = [
        ('query', '0016_auto_20160203_1324'),
    ]

    operations = [
        engine_specific(('mysql',),
            migrations.RunSQL(
                sql='alter table query_term modify word varchar(200) character set utf8 collate utf8_bin;',
                reverse_sql='alter table query_term modify word varchar(200) character set utf8 collate utf8_general_ci;'
            )
        ),
    ]
