diff --git a/posthog/clickhouse/migrations/0091_events_recent_inserted_at.py b/posthog/clickhouse/migrations/0091_events_recent_inserted_at.py index 20303b8d864e8..30a2668993178 100644 --- a/posthog/clickhouse/migrations/0091_events_recent_inserted_at.py +++ b/posthog/clickhouse/migrations/0091_events_recent_inserted_at.py @@ -1,6 +1,7 @@ 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 @@ -8,5 +9,5 @@ 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()), ]