summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2023-06-14 12:46:55 +0800
committerGitHub <noreply@github.com>2023-06-14 04:46:55 +0000
commit020ab3d4c8fc363b919a1e8a652551d8be6d2fe8 (patch)
treeafbf22746f166789c9b5072e8570770038c44bd7 /models
parentd6dd6d641b593c54fe1a1041c153111ce81dbc20 (diff)
downloadgitea-020ab3d4c8fc363b919a1e8a652551d8be6d2fe8.tar.gz
gitea-020ab3d4c8fc363b919a1e8a652551d8be6d2fe8.zip
Fix description of drop custom_labels migration (#25243)
Follow: #24806
Diffstat (limited to 'models')
-rw-r--r--models/migrations/migrations.go4
-rw-r--r--models/migrations/v1_21/v260.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 2aaed997ad..26fe1dea12 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -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
diff --git a/models/migrations/v1_21/v260.go b/models/migrations/v1_21/v260.go
index d66f5b0137..6ca52c5998 100644
--- a/models/migrations/v1_21/v260.go
+++ b/models/migrations/v1_21/v260.go
@@ -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()