Base MigrationHistoryReplicated path on database and table names

This commit is contained in:
Michael Matloka
2022-05-18 17:09:28 +02:00
parent 6be4826402
commit a84770904e
+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}",
)