1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +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) migrateReset(crupath, driverStr, connStr)
case "refresh": case "refresh":
ColorLog("[INFO] Refreshing all migrations\n") ColorLog("[INFO] Refreshing all migrations\n")
migrateReset(crupath, driverStr, connStr) migrateRefresh(crupath, driverStr, connStr)
default: default:
ColorLog("[ERRO] Command is missing\n") ColorLog("[ERRO] Command is missing\n")
os.Exit(2) os.Exit(2)