# Generated by Django 5.0.4 on 2024-07-10 13:45

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('home', '0014_rename_published_theshold_subscription_published_threshold'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='filter',
            options={'ordering': ('name',)},
        ),
        migrations.RemoveField(
            model_name='filter',
            name='keywords',
        ),
        migrations.RemoveField(
            model_name='filter',
            name='regex',
        ),
        migrations.RemoveField(
            model_name='filter',
            name='whitelist',
        ),
        migrations.RemoveField(
            model_name='subscription',
            name='article_fetch_limit',
        ),
        migrations.RemoveField(
            model_name='subscription',
            name='reset_article_fetch_limit',
        ),
        migrations.AddField(
            model_name='filter',
            name='is_insensitive',
            field=models.BooleanField(default=True, verbose_name='is insensitive'),
        ),
        migrations.AddField(
            model_name='filter',
            name='is_whitelist',
            field=models.BooleanField(default=False, verbose_name='is whitelist'),
        ),
        migrations.AddField(
            model_name='filter',
            name='match',
            field=models.CharField(blank=True, max_length=256, verbose_name='match'),
        ),
        migrations.AddField(
            model_name='filter',
            name='matching_algorithm',
            field=models.PositiveIntegerField(choices=[(0, 'None'), (1, 'Any word'), (2, 'All words'), (3, 'Exact match'), (4, 'Regular expression'), (5, 'Fuzzy word'), (6, 'Automatic')], default=1, verbose_name='matching algorithm'),
        ),
        migrations.AlterField(
            model_name='filter',
            name='guild_id',
            field=models.CharField(max_length=128, verbose_name='guild id'),
        ),
        migrations.AlterField(
            model_name='filter',
            name='name',
            field=models.CharField(max_length=128, verbose_name='name'),
        ),
    ]
