diff --git a/cli/build_clickhouse.go b/cli/build_clickhouse.go index e26bebb..c9175e2 100644 --- a/cli/build_clickhouse.go +++ b/cli/build_clickhouse.go @@ -4,5 +4,5 @@ package main import ( _ "github.com/kshvakov/clickhouse" - _ "github.com/kshvakov/migrate/database/clickhouse" + _ "github.com/mattes/migrate/database/clickhouse" ) diff --git a/database/clickhouse/clickhouse.go b/database/clickhouse/clickhouse.go index b5c0939..fba4541 100644 --- a/database/clickhouse/clickhouse.go +++ b/database/clickhouse/clickhouse.go @@ -24,6 +24,7 @@ type Config struct { func init() { database.Register("clickhouse", &ClickHouse{}) } + func WithInstance(conn *sql.DB, config *Config) (database.Driver, error) { if config == nil { return nil, ErrNilConfig