# Generated by Django 3.1.13 on 2022-03-20 19:41

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('companies', '0072_auto_20220308_0657'),
    ]

    operations = [
        migrations.AddField(
            model_name='historicalreview',
            name='external_id',
            field=models.CharField(
                blank=True, db_index=True, default=None, max_length=120, null=True
            ),
        ),
        migrations.AddField(
            model_name='review',
            name='external_id',
            field=models.CharField(
                blank=True, db_index=True, default=None, max_length=120, null=True
            ),
        ),
        migrations.AddConstraint(
            model_name='review',
            constraint=models.UniqueConstraint(
                condition=models.Q(external_id__isnull=False),
                fields=('source', 'external_id'),
                name='source__external_id__idx',
            ),
        ),
    ]
