diff --git a/posthog/clickhouse/migrations/0285_ai_events_gate_drift_check.py b/posthog/clickhouse/migrations/0285_ai_events_gate_drift_check.py new file mode 100644 index 000000000000..5dfd8d97ffd5 --- /dev/null +++ b/posthog/clickhouse/migrations/0285_ai_events_gate_drift_check.py @@ -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, + ), +] diff --git a/posthog/clickhouse/migrations/max_migration.txt b/posthog/clickhouse/migrations/max_migration.txt index a756096508b9..6e251dc73e33 100644 --- a/posthog/clickhouse/migrations/max_migration.txt +++ b/posthog/clickhouse/migrations/max_migration.txt @@ -1 +1 @@ -0284_message_assets +0285_ai_events_gate_drift_check \ No newline at end of file