17 lines
292 B
Go
17 lines
292 B
Go
|
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)
|
||
|
}
|