2025-03-18 03:24:54 +08:00
|
|
|
// Copyright 2025 The Gitea Authors. All rights reserved.
|
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
2025-06-27 07:59:55 +02:00
|
|
|
package v1_24
|
2025-03-18 03:24:54 +08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"xorm.io/xorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func AddDescriptionForSecretsAndVariables(x *xorm.Engine) error {
|
|
|
|
|
type Secret struct {
|
|
|
|
|
Description string `xorm:"TEXT"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActionVariable struct {
|
|
|
|
|
Description string `xorm:"TEXT"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-26 09:50:45 -07:00
|
|
|
_, err := x.SyncWithOptions(xorm.SyncOptions{
|
|
|
|
|
IgnoreConstrains: true,
|
|
|
|
|
IgnoreIndices: true,
|
|
|
|
|
}, new(Secret), new(ActionVariable))
|
|
|
|
|
return err
|
2025-03-18 03:24:54 +08:00
|
|
|
}
|