mirror of https://github.com/pressly/goose.git
commit
d24a46b61b
|
@ -43,7 +43,7 @@ Commands:
|
||||||
down-to VERSION Roll back to a specific VERSION
|
down-to VERSION Roll back to a specific VERSION
|
||||||
redo Re-run the latest migration
|
redo Re-run the latest migration
|
||||||
status Dump the migration status for the current DB
|
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
|
create Creates a blank migration template
|
||||||
|
|
||||||
Options:
|
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.
|
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:
|
Print the current version of the database:
|
||||||
|
|
||||||
$ goose dbversion
|
$ goose version
|
||||||
$ goose: dbversion 002
|
$ goose: version 002
|
||||||
|
|
||||||
# Migrations
|
# Migrations
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ Commands:
|
||||||
down-to VERSION Roll back to a specific VERSION
|
down-to VERSION Roll back to a specific VERSION
|
||||||
redo Re-run the latest migration
|
redo Re-run the latest migration
|
||||||
status Dump the migration status for the current DB
|
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
|
create Creates a blank migration template
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
|
@ -100,7 +100,7 @@ Commands:
|
||||||
down-to VERSION Roll back to a specific VERSION
|
down-to VERSION Roll back to a specific VERSION
|
||||||
redo Re-run the latest migration
|
redo Re-run the latest migration
|
||||||
status Dump the migration status for the current DB
|
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
|
create Creates a blank migration template
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,6 +12,6 @@ func Version(db *sql.DB, dir string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("goose: dbversion %v\n", current)
|
fmt.Printf("goose: version %v\n", current)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue