We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48cd82b commit c3bf46eCopy full SHA for c3bf46e
models/migrations/migrations.go
@@ -515,6 +515,8 @@ var migrations = []Migration{
515
NewMigration("Alter Actions Artifact table", v1_21.AlterActionArtifactTable),
516
// v266 -> v267
517
NewMigration("Reduce commit status", v1_21.ReduceCommitStatus),
518
+ // v267 -> v268
519
+ NewMigration("Drop deleted branch table", v1_21.DropDeletedBranchTable),
520
}
521
522
// GetCurrentDBVersion returns the current db version
models/migrations/v1_21/v267.go
@@ -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