Skip to content

Commit

Permalink
remove refresh command
Browse files Browse the repository at this point in the history
  • Loading branch information
smacker committed Jul 6, 2017
1 parent 0bf6bef commit b800f67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion cmd/goose/main.go
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions goose.go
Expand Up @@ -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
Expand Down

0 comments on commit b800f67

Please sign in to comment.