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

Refs https://github.com/1Panel-dev/1Panel/issues/6796
aliyun
zhengkunwang 1 month ago committed by ssongliu
parent ca38780da8
commit ab0e777501

@ -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