Skip to content

Commit

Permalink
feat(mggolangmigrate): remove MigrateCommand shorthand
Browse files Browse the repository at this point in the history
Can be inlined with `mggolangmigrate.Command`.
  • Loading branch information
odsod committed Jan 21, 2022
1 parent 26f8894 commit d26bb49
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tools/mggolangmigrate/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@ func Command(ctx context.Context, args ...string) *exec.Cmd {
return mgtool.Command(commandPath, args...)
}

func MigrateCommand(ctx context.Context, source, database string) *exec.Cmd {
return Command(ctx, "-source", source, "-database", database, "up")
}

func (Prepare) GolangMigrate(ctx context.Context) error {
binary, err := mgtool.GoInstall(
ctx,
"github.com/golang-migrate/migrate/v4/cmd/migrate",
version,
)
binary, err := mgtool.GoInstall(ctx, "github.com/golang-migrate/migrate/v4/cmd/migrate", version)
if err != nil {
return err
}
Expand Down

0 comments on commit d26bb49

Please sign in to comment.