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

This commit is contained in:
刘祥超
2021-08-02 15:23:02 +08:00
parent 1a3aaf2846
commit 89ff1927b7
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())