Skip to content

Commit

Permalink
Update test_migrations_are_safe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Oct 28, 2024
1 parent 34d86d6 commit d96fffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/management/commands/test_migrations_are_safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def validate_migration_sql(sql) -> bool:
)
return True
if (
"CONSTRAINT" in operation_sql
" CONSTRAINT " in operation_sql
# Ignore for new foreign key columns that are nullable, as their foreign key constraint does not lock
and not re.search(r"ADD COLUMN .+ NULL CONSTRAINT", operation_sql)
and "-- existing-table-constraint-ignore" not in operation_sql
Expand Down

0 comments on commit d96fffd

Please sign in to comment.