mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 18:26:15 +01:00
19 lines
619 B
Python
19 lines
619 B
Python
from infi.clickhouse_orm import migrations
|
|
|
|
from ee.clickhouse.sql.events import EVENTS_TABLE_MV_SQL, KAFKA_EVENTS_TABLE_SQL
|
|
from ee.clickhouse.sql.person import (
|
|
KAFKA_PERSONS_DISTINCT_ID_TABLE_SQL,
|
|
KAFKA_PERSONS_TABLE_SQL,
|
|
PERSONS_DISTINCT_ID_TABLE_MV_SQL,
|
|
PERSONS_TABLE_MV_SQL,
|
|
)
|
|
|
|
operations = [
|
|
migrations.RunSQL(KAFKA_EVENTS_TABLE_SQL),
|
|
migrations.RunSQL(KAFKA_PERSONS_TABLE_SQL),
|
|
migrations.RunSQL(KAFKA_PERSONS_DISTINCT_ID_TABLE_SQL),
|
|
migrations.RunSQL(EVENTS_TABLE_MV_SQL),
|
|
migrations.RunSQL(PERSONS_TABLE_MV_SQL),
|
|
migrations.RunSQL(PERSONS_DISTINCT_ID_TABLE_MV_SQL),
|
|
]
|