Skip to content

Commit

Permalink
Fix description of drop custom_labels migration (#25243)
Browse files Browse the repository at this point in the history
Follow: #24806
  • Loading branch information
sillyguodong authored Jun 14, 2023
1 parent d6dd6d6 commit 020ab3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions models/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion models/migrations/v1_21/v260.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 020ab3d

Please sign in to comment.