소스 검색

移除过时命令

lifei6671 7 년 전
부모
커밋
cf043c25a3
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      commands/command.go

+ 1 - 4
commands/command.go

@@ -21,7 +21,6 @@ import (
 	"github.com/astaxie/beego/orm"
 	"github.com/lifei6671/gocaptcha"
 	"github.com/lifei6671/mindoc/cache"
-	"github.com/lifei6671/mindoc/commands/migrate"
 	"github.com/lifei6671/mindoc/conf"
 	"github.com/lifei6671/mindoc/models"
 	"github.com/lifei6671/mindoc/utils/filetil"
@@ -133,10 +132,8 @@ func RegisterCommand() {
 	} else if len(os.Args) >= 2 && os.Args[1] == "version" {
 		CheckUpdate()
 		os.Exit(0)
-	} else if len(os.Args) >= 2 && os.Args[1] == "migrate" {
-		ResolveCommand(os.Args[2:])
-		migrate.RunMigration()
 	}
+
 }
 
 //注册模板函数