Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/internal/bootstrap/patch/all.go
1562 views
1
package patch
2
3
import (
4
"github.com/alist-org/alist/v3/internal/bootstrap/patch/v3_24_0"
5
"github.com/alist-org/alist/v3/internal/bootstrap/patch/v3_32_0"
6
"github.com/alist-org/alist/v3/internal/bootstrap/patch/v3_41_0"
7
"github.com/alist-org/alist/v3/internal/bootstrap/patch/v3_46_0"
8
)
9
10
type VersionPatches struct {
11
// Version means if the system is upgraded from Version or an earlier one
12
// to the current version, all patches in Patches will be executed.
13
Version string
14
Patches []func()
15
}
16
17
var UpgradePatches = []VersionPatches{
18
{
19
Version: "v3.24.0",
20
Patches: []func(){
21
v3_24_0.HashPwdForOldVersion,
22
},
23
},
24
{
25
Version: "v3.32.0",
26
Patches: []func(){
27
v3_32_0.UpdateAuthnForOldVersion,
28
},
29
},
30
{
31
Version: "v3.41.0",
32
Patches: []func(){
33
v3_41_0.GrantAdminPermissions,
34
},
35
},
36
{
37
Version: "v3.46.0",
38
Patches: []func(){
39
v3_46_0.ConvertLegacyRoles,
40
},
41
},
42
}
43
44