# Generated by Django 5.0.4 on 2024-07-02 12:36

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('home', '0010_alter_subscription_embed_colour_and_more'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='trackedcontent',
            name='unique guid & guild_id pair',
        ),
        migrations.RemoveConstraint(
            model_name='trackedcontent',
            name='unique url & guild_id pair',
        ),
        migrations.RenameField(
            model_name='trackedcontent',
            old_name='guild_id',
            new_name='channel_id',
        ),
        migrations.AddConstraint(
            model_name='trackedcontent',
            constraint=models.UniqueConstraint(fields=('guid', 'channel_id'), name='unique guid & guild_id pair'),
        ),
        migrations.AddConstraint(
            model_name='trackedcontent',
            constraint=models.UniqueConstraint(fields=('url', 'channel_id'), name='unique url & guild_id pair'),
        ),
    ]
