修复导致无法安装的严重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

@@ -93,7 +93,7 @@ func (this *Setup) Run() error {
}
executor := NewSQLExecutor(dbConfig)
err = executor.Run()
err = executor.Run(false)
if err != nil {
return err
}

File diff suppressed because one or more lines are too long

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
}