File tree 3 files changed +15
-1
lines changed 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -519,6 +519,8 @@ var migrations = []Migration{
519
519
NewMigration ("Add action_tasks_version table" , v1_21 .CreateActionTasksVersionTable ),
520
520
// v268 -> v269
521
521
NewMigration ("Update Action Ref" , v1_21 .UpdateActionsRefIndex ),
522
+ // v269 -> v270
523
+ NewMigration ("Drop deleted branch table" , v1_21 .DropDeletedBranchTable ),
522
524
}
523
525
524
526
// GetCurrentDBVersion returns the current db version
Original file line number Diff line number Diff line change @@ -89,5 +89,5 @@ func AddBranchTable(x *xorm.Engine) error {
89
89
}
90
90
}
91
91
92
- return x .DropTables ("deleted_branches" )
92
+ return x .DropTables (new ( DeletedBranch ) )
93
93
}
Original file line number Diff line number Diff line change
1
+ // Copyright 2023 The Gitea Authors. All rights reserved.
2
+ // SPDX-License-Identifier: MIT
3
+
4
+ package v1_21 //nolint
5
+
6
+ import (
7
+ "xorm.io/xorm"
8
+ )
9
+
10
+ func DropDeletedBranchTable (x * xorm.Engine ) error {
11
+ return x .DropTables ("deleted_branch" )
12
+ }
You can’t perform that action at this time.
0 commit comments