framework/cmd/app/migrator/migrate/init.go

17 lines
292 B
Go
Raw Permalink Normal View History

2024-10-12 02:52:22 +03:00
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)
}