mirror of https://github.com/pressly/goose.git
remove refresh command
parent
0bf6bef042
commit
b800f677cb
|
@ -117,7 +117,6 @@ Commands:
|
|||
down-to VERSION Roll back to a specific VERSION
|
||||
redo Re-run the latest migration
|
||||
reset Roll back all migrations
|
||||
refresh Roll back all migrations and apply all available migrations again
|
||||
status Dump the migration status for the current DB
|
||||
version Print the current version of the database
|
||||
create NAME [sql|go] Creates new migration file with next version
|
||||
|
|
7
goose.go
7
goose.go
|
@ -72,13 +72,6 @@ func Run(command string, db *sql.DB, dir string, args ...string) error {
|
|||
if err := Reset(db, dir); err != nil {
|
||||
return err
|
||||
}
|
||||
case "refresh":
|
||||
if err := Reset(db, dir); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := Up(db, dir); err != nil {
|
||||
return err
|
||||
}
|
||||
case "status":
|
||||
if err := Status(db, dir); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue