From ccf43f9c3bb03519c4314a89228f1bc99c04d152 Mon Sep 17 00:00:00 2001 From: Robbie Date: Tue, 23 Apr 2024 20:13:16 +0100 Subject: [PATCH] Use ConstraintNotValid --- ...move_propertydefinition_property_type_is_valid_and_more.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/migrations/0404_remove_propertydefinition_property_type_is_valid_and_more.py b/posthog/migrations/0404_remove_propertydefinition_property_type_is_valid_and_more.py index ae84002a79b581..a90c8214064bdb 100644 --- a/posthog/migrations/0404_remove_propertydefinition_property_type_is_valid_and_more.py +++ b/posthog/migrations/0404_remove_propertydefinition_property_type_is_valid_and_more.py @@ -1,5 +1,5 @@ # Generated by Django 4.2.11 on 2024-04-21 21:11 - +from django.contrib.postgres.operations import AddConstraintNotValid from django.db import migrations, models @@ -36,7 +36,7 @@ class Migration(migrations.Migration): choices=[(1, "event"), (2, "person"), (3, "group"), (4, "session")], default=1 ), ), - migrations.AddConstraint( + AddConstraintNotValid( model_name="propertydefinition", constraint=models.CheckConstraint( check=models.Q(("property_type__in", ["DateTime", "String", "Numeric", "Boolean", "Duration"])),