Skip to content

Commit

Permalink
add migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Oct 18, 2024
1 parent 362f4a2 commit 1c18b9c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions
from posthog.models.error_tracking.sql import ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_TABLE_SQL

operations = [
run_sql_with_exceptions(ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_TABLE_SQL()),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions
from posthog.models.error_tracking.sql import (
KAFKA_ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_TABLE_SQL,
ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_MV_SQL,
)

operations = [
run_sql_with_exceptions(KAFKA_ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_TABLE_SQL()),
run_sql_with_exceptions(ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_MV_SQL),
]
2 changes: 2 additions & 0 deletions posthog/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def reset_clickhouse_tables():
TRUNCATE_PERSON_STATIC_COHORT_TABLE_SQL,
TRUNCATE_PERSON_TABLE_SQL,
)
from posthog.models.error_tracking.sql import TRUNCATE_ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_TABLE_SQL
from posthog.models.sessions.sql import TRUNCATE_SESSIONS_TABLE_SQL
from posthog.session_recordings.sql.session_recording_event_sql import (
TRUNCATE_SESSION_RECORDING_EVENTS_TABLE_SQL,
Expand All @@ -81,6 +82,7 @@ def reset_clickhouse_tables():
TRUNCATE_PERSON_DISTINCT_ID2_TABLE_SQL,
TRUNCATE_PERSON_DISTINCT_ID_OVERRIDES_TABLE_SQL,
TRUNCATE_PERSON_STATIC_COHORT_TABLE_SQL,
TRUNCATE_ERROR_TRACKING_ISSUE_FINGERPRINT_OVERRIDES_TABLE_SQL,
TRUNCATE_SESSION_RECORDING_EVENTS_TABLE_SQL(),
TRUNCATE_PLUGIN_LOG_ENTRIES_TABLE_SQL,
TRUNCATE_COHORTPEOPLE_TABLE_SQL,
Expand Down

0 comments on commit 1c18b9c

Please sign in to comment.