Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(hogli): add migrations:clickhouse to run all ClickHouse migrations (#65414)

Paweł Szczurf5e6327dae75
diff --git a/hogli.yaml b/hogli.yaml
index 213cf5d7c174..592e55864ab7 100644
--- a/hogli.yaml
+++ b/hogli.yaml
@@ -632,6 +632,13 @@ migrations:
description: Run all database migrations (ClickHouse, Postgres, async) in parallel
env:
DEBUG: '1'
+ migrations:clickhouse:
+ cmd: bin/migrate --scope=clickhouse
+ description: Initialize ClickHouse - run all ClickHouse migrations (and sync replicated schema)
+ env:
+ DEBUG: '1'
+ services:
+ - clickhouse
migrations:check:
bin_script: migrate-check
description: Verify all migrations are ready without applying them