1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

Fix description of drop custom_labels migration (#25243)

Follow: #24806
This commit is contained in:
sillyguodong 2023-06-14 12:46:55 +08:00 committed by GitHub
parent d6dd6d641b
commit 020ab3d4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -499,10 +499,10 @@ var migrations = []Migration{
// v259 -> 260
NewMigration("Convert scoped access tokens", v1_20.ConvertScopedAccessTokens),
// Gitea 1.21.0 ends at 260
// Gitea 1.20.0 ends at 260
// v260 -> v261
NewMigration("Add label column to action_run table, and combine labels", v1_21.DropCustomLabelsColumnToActRunner),
NewMigration("Drop custom_labels column of action_runner table", v1_21.DropCustomLabelsColumnOfActionRunner),
}
// GetCurrentDBVersion returns the current db version

View File

@ -9,7 +9,7 @@ import (
"xorm.io/xorm"
)
func DropCustomLabelsColumnToActRunner(x *xorm.Engine) error {
func DropCustomLabelsColumnOfActionRunner(x *xorm.Engine) error {
sess := x.NewSession()
defer sess.Close()