Skip to content

Commit c3bf46e

Browse files
yp05327lunny
authored andcommitted
fix
1 parent 48cd82b commit c3bf46e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

models/migrations/migrations.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ var migrations = []Migration{
515515
NewMigration("Alter Actions Artifact table", v1_21.AlterActionArtifactTable),
516516
// v266 -> v267
517517
NewMigration("Reduce commit status", v1_21.ReduceCommitStatus),
518+
// v267 -> v268
519+
NewMigration("Drop deleted branch table", v1_21.DropDeletedBranchTable),
518520
}
519521

520522
// GetCurrentDBVersion returns the current db version

models/migrations/v1_21/v267.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)