From 6eb09e15d69c0cc21ceee75dbd994e3d7a172494 Mon Sep 17 00:00:00 2001 From: raoptimus Date: Tue, 3 Dec 2024 16:07:03 +0300 Subject: [PATCH] adding experimental replicated function to clickhouse #40 --- internal/dal/repository/clickhouse.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/dal/repository/clickhouse.go b/internal/dal/repository/clickhouse.go index fa8b64c..6a3f249 100644 --- a/internal/dal/repository/clickhouse.go +++ b/internal/dal/repository/clickhouse.go @@ -157,11 +157,6 @@ func (c *Clickhouse) CreateMigrationHistoryTable(ctx context.Context) error { tableName = c.options.TableName engine = "ReplacingMergeTree(apply_time)" } - if !c.options.Replicated && len(c.options.ClusterName) > 0 { - tableName += " ON CLUSTER " + c.options.ClusterName - engine = "ReplicatedReplacingMergeTree('/clickhouse/tables/{shard}/" + - c.options.ClusterName + "_" + c.options.TableName + "', '{replica}', apply_time)" - } q = fmt.Sprintf( `