Skip to content

Commit b488f1d

Browse files
Try to give a better name for migration step
1 parent 5bcf80e commit b488f1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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", addBranchProtectionAddEnableWhitelist),
276+
NewMigration("update branch protection for can push and whitelist enable", addBranchProtectionCanPushAndEnableWhitelist),
277277
}
278278

279279
// Migrate database to current version

models/migrations/v109.go

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

11-
func addBranchProtectionAddEnableWhitelist(x *xorm.Engine) error {
11+
func addBranchProtectionCanPushAndEnableWhitelist(x *xorm.Engine) error {
1212

1313
type ProtectedBranch struct {
1414
CanPush bool `xorm:"NOT NULL DEFAULT false"`

0 commit comments

Comments
 (0)