Skip to content

Commit 8149ed7

Browse files
MarcelHillmannsapk
andcommitted
Issue with Migration rule v111 (#9449)
* Issue with Migration rule v111 I was facing some issues with migration rule v111 * Update v111.go Fix pgsql test cases Co-authored-by: Antoine GIRARD <[email protected]>
1 parent 4f42e03 commit 8149ed7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

models/migrations/v111.go

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ func addBranchProtectionCanPushAndEnableWhitelist(x *xorm.Engine) error {
3434
return err
3535
}
3636

37+
if _, err := sess.Exec("UPDATE `protected_branch` SET `enable_whitelist` = ? WHERE enable_whitelist IS NULL", false); err != nil {
38+
return err
39+
}
3740
if _, err := sess.Exec("UPDATE `protected_branch` SET `can_push` = `enable_whitelist`"); err != nil {
3841
return err
3942
}

0 commit comments

Comments
 (0)