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
|
down-to VERSION Roll back to a specific VERSION
|
||||||
redo Re-run the latest migration
|
redo Re-run the latest migration
|
||||||
reset Roll back all migrations
|
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
|
status Dump the migration status for the current DB
|
||||||
version Print the current version of the database
|
version Print the current version of the database
|
||||||
create NAME [sql|go] Creates new migration file with next version
|
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 {
|
if err := Reset(db, dir); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case "refresh":
|
|
||||||
if err := Reset(db, dir); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Up(db, dir); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
case "status":
|
case "status":
|
||||||
if err := Status(db, dir); err != nil {
|
if err := Status(db, dir); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue