Skip to content

Commit

Permalink
fix: sql statement to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Daesgar committed Nov 27, 2024
1 parent 160d620 commit 3865496
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions
from posthog.models.event.sql import (
EVENTS_RECENT_DATA_TABLE,
EVENTS_RECENT_TABLE_SQL,
)

from posthog.settings import CLICKHOUSE_CLUSTER


operations = [
run_sql_with_exceptions(f"DROP TABLE IF EXISTS {EVENTS_RECENT_DATA_TABLE()} ON CLUSTER '{CLICKHOUSE_CLUSTER}'"),
run_sql_with_exceptions(EVENTS_RECENT_DATA_TABLE()),
run_sql_with_exceptions(EVENTS_RECENT_TABLE_SQL()),
]

0 comments on commit 3865496

Please sign in to comment.