使用upgrade命令升级数据库时增加日志显示

This commit is contained in:
GoEdgeLab
2021-08-02 15:23:02 +08:00
parent ee825f5d89
commit fad1ccd28f
4 changed files with 32 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ func main() {
_, _ = os.Stdout.Write(resultJSON)
})
app.On("upgrade", func() {
fmt.Println("start ...")
executor, err := setup.NewSQLExecutorFromCmd()
if err != nil {
fmt.Println("ERROR: " + err.Error())