Rename up command to migrate

This commit is contained in:
Adrian Macneil 2015-11-25 11:04:00 -08:00
parent 9cfc758ca1
commit 99a4f266e6
2 changed files with 4 additions and 10 deletions

View file

@ -104,8 +104,8 @@ func doTransaction(db *sql.DB, txFunc func(shared.Transaction) error) error {
return tx.Commit()
}
// UpCommand migrates database to the latest version
func UpCommand(ctx *cli.Context) error {
// MigrateCommand migrates database to the latest version
func MigrateCommand(ctx *cli.Context) error {
migrationsDir := ctx.GlobalString("migrations-dir")
available, err := findAvailableMigrations(migrationsDir)
if err != nil {