<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('what_meta', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WhatMetaFulltext',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('info', models.TextField()),
                ('more_info', models.TextField()),
                ('artist', models.ForeignKey(null=True, to='what_meta.WhatArtist', unique=True)),
                ('torrent_group', models.ForeignKey(null=True, to='what_meta.WhatTorrentGroup', unique=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
    ]<commit_msg>Also properly alter the fulltext table.<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('what_meta', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WhatMetaFulltext',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('info', models.TextField()),
                ('more_info', models.TextField()),
                ('artist', models.ForeignKey(null=True, to='what_meta.WhatArtist', unique=True)),
                ('torrent_group', models.ForeignKey(null=True, to='what_meta.WhatTorrentGroup', unique=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),

        # Add indexes and fix fulltext
        migrations.RunSQL(
            'ALTER TABLE `what_meta_whatmetafulltext` ENGINE = MYISAM',
            'ALTER TABLE `what_meta_whatmetafulltext` ENGINE = INNODB',
            ),
        migrations.RunSQL(
            'ALTER TABLE `what_meta_whatmetafulltext` ADD FULLTEXT `info_fts` (`info`)',
            'ALTER TABLE `what_meta_whatmetafulltext` DROP INDEX `info_fts`',
            ),
        migrations.RunSQL(
            'ALTER TABLE `what_meta_whatmetafulltext` ADD ' +
            'FULLTEXT `info_more_info_fts` (`info`,`more_info`)',
            'ALTER TABLE `what_meta_whatmetafulltext` DROP INDEX `info_more_info_fts`'
        ),
    ]
{'fraction_non_alphanumeric': 0.1278409090909091, 'fraction_numerical': 0.004058441558441558, 'mean_word_length': 2.344640434192673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2226719', 'n_tokens_mistral': 717, 'n_tokens_neox': 695, 'n_words': 129}