diff options
Diffstat (limited to 'cmd/app/migrator/migrate/init.go')
-rw-r--r-- | cmd/app/migrator/migrate/init.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/app/migrator/migrate/init.go b/cmd/app/migrator/migrate/init.go new file mode 100644 index 0000000..ec689f8 --- /dev/null +++ b/cmd/app/migrator/migrate/init.go @@ -0,0 +1,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) +} |