loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Drop the correct deleted branch table (#26028)

There's a typo in #22743
The correct table name is `deleted_branch` not `deleted_branches`

authored by

yp05327 and committed by
GitHub
74ca4377 d36ddfe2

+15 -1
+2
models/migrations/migrations.go
··· 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
+1 -1
models/migrations/v1_21/v264.go
··· 89 89 } 90 90 } 91 91 92 - return x.DropTables("deleted_branches") 92 + return x.DropTables(new(DeletedBranch)) 93 93 }
+12
models/migrations/v1_21/v269.go
··· 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 + }