1
0
mirror of https://github.com/beego/bee.git synced 2024-11-29 06:31:35 +00:00

bugfix: call refresh function when refreshing

This commit is contained in:
ZhengYang 2014-08-14 12:10:03 +08:00
parent 7377c05023
commit 104b35e062

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)