Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from posthog.clickhouse.client.connection import NodeRole
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions

operations = [
run_sql_with_exceptions(
"ALTER TABLE sharded_ai_events ADD COLUMN IF NOT EXISTS gate_drift_sanity_check UInt8 DEFAULT 0",
node_roles=[NodeRole.AI_EVENTS],
sharded=False,
is_alter_on_replicated_table=True,
),
]
2 changes: 1 addition & 1 deletion posthog/clickhouse/migrations/max_migration.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0284_message_assets
0285_ai_events_gate_drift_check

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 The file is missing a trailing newline after the update. The previous value (0284_message_assets) had one, and most text files in the repo follow the same convention — some tooling also expects it.

Suggested change
0285_ai_events_gate_drift_check
0285_ai_events_gate_drift_check

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Loading