修复导致无法安装的严重Bug

This commit is contained in:
刘祥超
2021-08-05 19:53:54 +08:00
parent 5105af9918
commit a9ce2f45df
6 changed files with 7 additions and 7 deletions

View File

@@ -47,14 +47,14 @@ func NewSQLExecutorFromCmd() (*SQLExecutor, error) {
return NewSQLExecutor(config.DBs[Tea.Env]), nil
}
func (this *SQLExecutor) Run() error {
func (this *SQLExecutor) Run(showLog bool) error {
db, err := dbs.NewInstanceFromConfig(this.dbConfig)
if err != nil {
return err
}
sqlDump := NewSQLDump()
_, err = sqlDump.Apply(db, LatestSQLResult, true)
_, err = sqlDump.Apply(db, LatestSQLResult, showLog)
if err != nil {
return err
}