mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix description of drop custom_labels migration (#25243)
Follow: #24806
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user