Skip to content

Commit f69ece0

Browse files
author
voloshina
committed
Update clickhouse engine
1 parent c378583 commit f69ece0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/clickhouse/clickhouse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (ch *ClickHouse) ensureVersionTable() (err error) {
248248
) Engine=%s`, ch.config.MigrationsTable, ch.config.MigrationsTableEngine)
249249
}
250250

251-
if strings.HasSuffix(ch.config.MigrationsTableEngine, "Tree") {
251+
if strings.Contains(ch.config.MigrationsTableEngine, "MergeTree") {
252252
query = fmt.Sprintf(`%s ORDER BY sequence`, query)
253253
}
254254

0 commit comments

Comments
 (0)