remove refresh command

pull/60/head
Sukharev Maxim 2017-07-06 10:17:33 +07:00
parent 0bf6bef042
commit b800f677cb
2 changed files with 0 additions and 8 deletions

View File

@ -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

View File

@ -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