aboutsummaryrefslogtreecommitdiff
path: root/cmd/app/migrator/migrate/init.go
blob: ec689f88cc10d7e4ea2a96e91c4c4cda5cdd0494 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package migrate

import (
	"github.com/urfave/cli/v2"
	"go.neonxp.ru/framework/cmd/app/migrator/migrator"
	"go.neonxp.ru/framework/migrations"
)

func Init(c *cli.Context) error {
	m, err := migrator.New(c, migrations.Migrations)
	if err != nil {
		return err
	}

	return m.Init(c.Context)
}