You've already forked go-clickhouse
mirror of
https://github.com/uptrace/go-clickhouse.git
synced 2025-06-29 00:21:46 +02:00
19 lines
269 B
Go
19 lines
269 B
Go
package migrations
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/uptrace/go-clickhouse/chmigrate"
|
|
)
|
|
|
|
var Migrations = chmigrate.NewMigrations()
|
|
|
|
//go:embed *.sql
|
|
var sqlMigrations embed.FS
|
|
|
|
func init() {
|
|
if err := Migrations.Discover(sqlMigrations); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|