🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
fix replays (#488)
Bill Yanga1c7d435c6e6
diff --git a/server/src/db/clickhouse/clickhouse.ts b/server/src/db/clickhouse/clickhouse.tsindex 0461c5d51..89b1cf37a 100644--- a/server/src/db/clickhouse/clickhouse.ts+++ b/server/src/db/clickhouse/clickhouse.ts@@ -83,6 +83,14 @@ export const initializeClickhouse = async () => {`,});+ await clickhouse.exec({+ query: `+ ALTER TABLE session_replay_events+ ADD COLUMN IF NOT EXISTS event_data_key Nullable(String), -- R2 storage key for cloud deployments+ ADD COLUMN IF NOT EXISTS batch_index Nullable(UInt16) -- Index within the R2 batch+ `,+ });+await clickhouse.exec({query: `CREATE TABLE IF NOT EXISTS session_replay_metadata (