diff --git a/posthog/models/channel_type/sql.py b/posthog/models/channel_type/sql.py index ade3b814236d8..148ffddcfdbe2 100644 --- a/posthog/models/channel_type/sql.py +++ b/posthog/models/channel_type/sql.py @@ -11,7 +11,7 @@ type_if_paid String NULL, type_if_organic String NULL, ) ENGINE = MergeTree() -ORDER BY domain; +ORDER BY domain, kind; """ DROP_CHANNEL_DEFINITION_TABLE_SQL = f"DROP TABLE IF EXISTS channel_definition ON CLUSTER '{CLICKHOUSE_CLUSTER}'"