# Generated by Django 4.2.16 on 2025-03-07 13:46

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('policy', '0010_merge_20240912_1248'),
    ]

    operations = [
        migrations.AddConstraint(
            model_name='policyrenewal',
            constraint=models.UniqueConstraint(condition=models.Q(('validity_to__isnull',True)),
            fields=('policy', 'validity_to'), 
            name='unique_policy_validity_to_null'),
        ),
    ]
