mirror of https://github.com/status-im/migrate.git
change include path from github.com/kshvakov to github.com/mattes
This commit is contained in:
parent
9341404de0
commit
e86f4a201c
|
@ -4,5 +4,5 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/kshvakov/clickhouse"
|
_ "github.com/kshvakov/clickhouse"
|
||||||
_ "github.com/kshvakov/migrate/database/clickhouse"
|
_ "github.com/mattes/migrate/database/clickhouse"
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,6 +24,7 @@ type Config struct {
|
||||||
func init() {
|
func init() {
|
||||||
database.Register("clickhouse", &ClickHouse{})
|
database.Register("clickhouse", &ClickHouse{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func WithInstance(conn *sql.DB, config *Config) (database.Driver, error) {
|
func WithInstance(conn *sql.DB, config *Config) (database.Driver, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, ErrNilConfig
|
return nil, ErrNilConfig
|
||||||
|
|
Loading…
Reference in New Issue