Skip to content

Commit 7e858bb

Browse files
committed
drop ref column for issue
1 parent 422c5e8 commit 7e858bb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

models/migrations/migrations.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ func prepareMigrationTasks() []*migration {
369369
newMigration(309, "Improve Notification table indices", v1_23.ImproveNotificationTableIndices),
370370
newMigration(310, "Add Priority to ProtectedBranch", v1_23.AddPriorityToProtectedBranch),
371371
newMigration(311, "Add TimeEstimate to Issue table", v1_23.AddTimeEstimateColumnToIssueTable),
372+
newMigration(312, "Drop ref column for issue table", v1_23.DropRefForIssue),
372373
}
373374
return preparedMigrations
374375
}

models/migrations/v1_23/v312.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright 2024 The Gitea Authors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
4+
package v1_23 //nolint
5+
6+
import "xorm.io/xorm"
7+
8+
func DropRefForIssue(x *xorm.Engine) error {
9+
_, err := x.Exec("ALTER TABLE `issue` DROP COLUMN `ref`")
10+
return err
11+
}

0 commit comments

Comments
 (0)