Feat: migration DB support custom upgrade scripts

This commit is contained in:
HFO4
2021-11-22 19:53:42 +08:00
parent 96b84bb5e5
commit 9fc08292a0
11 changed files with 196 additions and 14 deletions

View File

@ -9,10 +9,6 @@ import (
type ResetAdminPassword int
func init() {
register("ResetAdminPassword", ResetAdminPassword(0))
}
// Run 运行脚本从社区版升级至 Pro 版
func (script ResetAdminPassword) Run(ctx context.Context) {
// 查找用户