0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/ee/clickhouse/migrations/0002_events_materialized.py
James Greenhill dedf5582c1
first chunk of clickhouse framework (#1613)
* first chunk of clickhouse framework

* prod, not dev docker-compose.yml

* add clickhouse sql files
2020-09-08 16:12:27 -07:00

14 lines
360 B
Python

from infi.clickhouse_orm import migrations
from ee.clickhouse.sql.events import (
EVENTS_WITH_PROPS_TABLE_SQL,
MAT_EVENT_PROP_TABLE_SQL,
MAT_EVENTS_WITH_PROPS_TABLE_SQL,
)
operations = [
migrations.RunSQL(EVENTS_WITH_PROPS_TABLE_SQL),
migrations.RunSQL(MAT_EVENTS_WITH_PROPS_TABLE_SQL),
migrations.RunSQL(MAT_EVENT_PROP_TABLE_SQL),
]