bugfix: call refresh function when refreshing

This commit is contained in:
ZhengYang 2014-08-14 12:10:03 +08:00
parent 7377c05023
commit 104b35e062
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func runMigration(cmd *Command, args []string) {
migrateReset(crupath, driverStr, connStr)
case "refresh":
ColorLog("[INFO] Refreshing all migrations\n")
migrateReset(crupath, driverStr, connStr)
migrateRefresh(crupath, driverStr, connStr)
default:
ColorLog("[ERRO] Command is missing\n")
os.Exit(2)