From cf043c25a32dff4d89173e2766e73d7ccbbdff1b Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Wed, 11 Jul 2018 18:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=BF=87=E6=97=B6=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/command.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/commands/command.go b/commands/command.go index dc37e65e..987de8aa 100644 --- a/commands/command.go +++ b/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() } + } //注册模板函数