Merge pull request #9 from PostHog/fix-replicated-migration-table

Base `MigrationHistoryReplicated` path on database and table names
This commit is contained in:
James Greenhill
2022-05-18 09:15:57 -07:00
committed by GitHub
+1 -1
View File
@@ -298,7 +298,7 @@ class MigrationHistoryReplicated(Model):
engine = MergeTree(
"applied",
("package_name", "module_name"),
replica_table_path="/clickhouse/prod/tables/noshard/posthog.infi_clickhouse_orm_migrations",
replica_table_path="/clickhouse/prod/tables/noshard/{database}/{table}",
replica_name="{replica}-{shard}",
)