mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决 Mysql 特定版本忽略升级失效的问题 (#6800)
Refs https://github.com/1Panel-dev/1Panel/issues/6796
This commit is contained in:
parent
ca38780da8
commit
ab0e777501
@ -1342,6 +1342,18 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool, sync bool)
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
lastVersion := versions[0]
|
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) {
|
if common.IsCrossVersion(installed.Version, lastVersion) {
|
||||||
installDTO.CanUpdate = app.CrossVersionUpdate
|
installDTO.CanUpdate = app.CrossVersionUpdate
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user