blob: 6f06c2da48cc3cc282ec72a9a60f6d3510f57be6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package migrate
import (
"context"
"git.neonxp.ru/neonxp/guessr/cmd/migrator/migrator"
"git.neonxp.ru/neonxp/guessr/migrations"
"github.com/urfave/cli/v3"
)
func Init(ctx context.Context, c *cli.Command) error {
m, err := migrator.New(c, migrations.Migrations)
if err != nil {
return err
}
return m.Init(ctx)
}
|