Merge pull request #46 from duffn/readme-version

Fix dbversion to version
pull/48/head
Vojtech Vitek 2017-05-08 15:20:41 -04:00 committed by GitHub
commit d24a46b61b
4 changed files with 7 additions and 7 deletions

View File

@ -43,7 +43,7 @@ Commands:
down-to VERSION Roll back to a specific VERSION
redo Re-run the latest migration
status Dump the migration status for the current DB
dbversion Print the current version of the database
version Print the current version of the database
create Creates a blank migration template
Options:
@ -126,12 +126,12 @@ Print the status of all migrations:
Note: for MySQL [parseTime flag](https://github.com/go-sql-driver/mysql#parsetime) must be enabled.
## dbversion
## version
Print the current version of the database:
$ goose dbversion
$ goose: dbversion 002
$ goose version
$ goose: version 002
# Migrations

View File

@ -111,7 +111,7 @@ Commands:
down-to VERSION Roll back to a specific VERSION
redo Re-run the latest migration
status Dump the migration status for the current DB
dbversion Print the current version of the database
version Print the current version of the database
create Creates a blank migration template
`
)

View File

@ -100,7 +100,7 @@ Commands:
down-to VERSION Roll back to a specific VERSION
redo Re-run the latest migration
status Dump the migration status for the current DB
dbversion Print the current version of the database
version Print the current version of the database
create Creates a blank migration template
`
)

View File

@ -12,6 +12,6 @@ func Version(db *sql.DB, dir string) error {
return err
}
fmt.Printf("goose: dbversion %v\n", current)
fmt.Printf("goose: version %v\n", current)
return nil
}