Skip to content

Commit 5bcf80e

Browse files
rename migration function
1 parent 11a5954 commit 5bcf80e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

models/migrations/migrations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ var migrations = []Migration{
273273
// v108 -> v109
274274
NewMigration("Add comment_id on table notification", addCommentIDOnNotification),
275275
// v109 -> v110
276-
NewMigration("update branch protection whitelist enable", BranchProtectionAddEnableWhitelist),
276+
NewMigration("update branch protection whitelist enable", addBranchProtectionAddEnableWhitelist),
277277
}
278278

279279
// Migrate database to current version

models/migrations/v109.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import (
88
"xorm.io/xorm"
99
)
1010

11-
// BranchProtectionAddEnableWhitelist migrates can push vs whitelist push and enabling of approvals whitelist
12-
func BranchProtectionAddEnableWhitelist(x *xorm.Engine) error {
11+
func addBranchProtectionAddEnableWhitelist(x *xorm.Engine) error {
1312

1413
type ProtectedBranch struct {
1514
CanPush bool `xorm:"NOT NULL DEFAULT false"`

0 commit comments

Comments
 (0)