Skip to content

Commit

Permalink
Use ConstraintNotValid
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Apr 23, 2024
1 parent 8c5ba23 commit ccf43f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by Django 4.2.11 on 2024-04-21 21:11

from django.contrib.postgres.operations import AddConstraintNotValid

Check failure on line 2 in posthog/migrations/0404_remove_propertydefinition_property_type_is_valid_and_more.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

Module "django.contrib.postgres.operations" has no attribute "AddConstraintNotValid"
from django.db import migrations, models


Expand Down Expand Up @@ -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"])),
Expand Down

0 comments on commit ccf43f9

Please sign in to comment.