Skip to content

Commit

Permalink
adding experimental replicated function to clickhouse #40
Browse files Browse the repository at this point in the history
  • Loading branch information
raoptimus committed Dec 3, 2024
1 parent d9058ca commit 6eb09e1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/dal/repository/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
`
Expand Down

0 comments on commit 6eb09e1

Please sign in to comment.