# Path: query/operations.py
# def engine_specific(engines, operation):
#     """ Modify `operation` to only operate for particular `engines`. """
#     
#     def nullop(*args, **kwargs):
#         pass
#     
#     configured_engine = settings.DATABASES['default']['ENGINE']
#     
#     for engine in engines:
#         if engine in configured_engine:
#             break
#     else:
#         operation.state_forwards = nullop
#         operation.database_forwards = nullop
#         operation.database_backwards = nullop
#     
#     return operation


from django.db import models, migrations
from query.operations import engine_specific
# -*- coding: utf-8 -*-
from __future__ import unicode_literals




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;'
            )
        ),

# Path: query/operations.py
# def engine_specific(engines, operation):
#     """ Modify `operation` to only operate for particular `engines`. """
#     
#     def nullop(*args, **kwargs):
#         pass
#     
#     configured_engine = settings.DATABASES['default']['ENGINE']
#     
#     for engine in engines:
#         if engine in configured_engine:
#             break
#     else:
#         operation.state_forwards = nullop
#         operation.database_forwards = nullop
#         operation.database_backwards = nullop
#     
#     return operation


# Path: query/migrations/0017_auto_20160224_1306.py
from django.db import models, migrations
from query.operations import engine_specific

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




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;'
            )
        ),

    ]