Browse Source

fix: 解决 Mysql 特定版本忽略升级失效的问题 (#6800)

Refs https://github.com/1Panel-dev/1Panel/issues/6796
pull/6801/head
zhengkunwang 1 month ago committed by GitHub
parent
commit
2e5283b8d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      backend/app/service/app_utils.go

12
backend/app/service/app_utils.go

@ -1342,6 +1342,18 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool, sync bool)
continue
}
lastVersion := versions[0]
if app.Key == constant.AppMysql {
for _, version := range versions {
majorVersion := getMajorVersion(installed.Version)
if !strings.HasPrefix(version, majorVersion) {
continue
} else {
lastVersion = version
break
}
}
}
if common.IsCrossVersion(installed.Version, lastVersion) {
installDTO.CanUpdate = app.CrossVersionUpdate
} else {

Loading…
Cancel
Save