<filename>pontoon/base/migrations/0138_index_on_translationmemoryentry.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-05 23:12
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ("base", "0137_delete_entries_of_deleted_translations"),
    ]

    operations = [
        migrations.RunSQL(
            "CREATE INDEX tm_locale_source_length_idx ON base_translationmemoryentry(locale_id, length(source))",
            "DROP INDEX tm_locale_source_length_idx",
        )
    ]

<filename>pontoon/base/migrations/0138_index_on_translationmemoryentry.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-05 23:12
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ("base", "0137_delete_entries_of_deleted_translations"),
    ]

    operations = [
        migrations.RunSQL(
            "CREATE INDEX tm_locale_source_length_idx ON base_translationmemoryentry(locale_id, length(source))",
            "DROP INDEX tm_locale_source_length_idx",
        )
    ]

# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-11-05 23:12