1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-12-21 23:57:27 +02:00
Files
go-clickhouse/example/migrations/migrations/20210505110026_foo.go
Vladimir Mihailenco 092a2dbf28 feat: initial commit
2022-03-21 08:58:25 +02:00

19 lines
321 B
Go

package migrations
import (
"context"
"fmt"
"github.com/uptrace/go-clickhouse/ch"
)
func init() {
Migrations.MustRegister(func(ctx context.Context, db *ch.DB) error {
fmt.Print(" [up migration] ")
return nil
}, func(ctx context.Context, db *ch.DB) error {
fmt.Print(" [down migration] ")
return nil
})
}