You've already forked go-clickhouse
mirror of
https://github.com/uptrace/go-clickhouse.git
synced 2025-12-21 23:57:27 +02:00
19 lines
321 B
Go
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
|
|
})
|
|
}
|