Skip to content

Commit

Permalink
Add follow-up migration to validate the constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Apr 23, 2024
1 parent ccf43f9 commit c9df14b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion latest_migrations.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ contenttypes: 0002_remove_content_type_name
ee: 0016_rolemembership_organization_member
otp_static: 0002_throttling
otp_totp: 0002_auto_20190420_0723
posthog: 0404_remove_propertydefinition_property_type_is_valid_and_more
posthog: 0405_validate_property_type_is_valid
sessions: 0001_initial
social_django: 0010_uid_db_index
two_factor: 0007_auto_20201201_1019
12 changes: 12 additions & 0 deletions posthog/migrations/0405_validate_property_type_is_valid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.contrib.postgres.operations import ValidateConstraint

Check failure on line 1 in posthog/migrations/0405_validate_property_type_is_valid.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

Module "django.contrib.postgres.operations" has no attribute "ValidateConstraint"
from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("posthog", "0404_remove_propertydefinition_property_type_is_valid_and_more"),
]

operations = [
ValidateConstraint(model_name="propertydefinition", name="property_type_is_valid"),
]

0 comments on commit c9df14b

Please sign in to comment.