@@ -46,8 +46,8 @@ type ProtectedBranch struct {
4646 MergeWhitelistTeamIDs []int64 `xorm:"JSON TEXT"`
4747 CanForcePush bool `xorm:"NOT NULL DEFAULT false"`
4848 EnableForcePushAllowlist bool `xorm:"NOT NULL DEFAULT false"`
49- ForcePushAllowlistUserIDs []int64 `xorm:"force_push_allowlist_user_ids JSON TEXT"`
50- ForcePushAllowlistTeamIDs []int64 `xorm:"force_push_allowlist_team_ids JSON TEXT"`
49+ ForcePushAllowlistUserIDs []int64 `xorm:"JSON TEXT"`
50+ ForcePushAllowlistTeamIDs []int64 `xorm:"JSON TEXT"`
5151 ForcePushAllowlistDeployKeys bool `xorm:"NOT NULL DEFAULT false"`
5252 EnableStatusCheck bool `xorm:"NOT NULL DEFAULT false"`
5353 StatusCheckContexts []string `xorm:"JSON TEXT"`
@@ -552,21 +552,21 @@ func removeIDsFromProtectedBranch(ctx context.Context, p *ProtectedBranch, userI
552552// RemoveUserIDFromProtectedBranch removes all user ids from protected branch options
553553func RemoveUserIDFromProtectedBranch (ctx context.Context , p * ProtectedBranch , userID int64 ) error {
554554 columnNames := []string {
555- "whitelist_user_ids " ,
556- "force_push_whitelist_user_ids " ,
557- "merge_whitelist_user_ids " ,
558- "approvals_whitelist_user_ids " ,
555+ "whitelist_user_i_ds " ,
556+ "force_push_whitelist_user_i_ds " ,
557+ "merge_whitelist_user_i_ds " ,
558+ "approvals_whitelist_user_i_ds " ,
559559 }
560560 return removeIDsFromProtectedBranch (ctx , p , userID , 0 , columnNames )
561561}
562562
563563// RemoveTeamIDFromProtectedBranch removes all team ids from protected branch options
564564func RemoveTeamIDFromProtectedBranch (ctx context.Context , p * ProtectedBranch , teamID int64 ) error {
565565 columnNames := []string {
566- "whitelist_team_ids " ,
567- "force_push_whitelist_team_ids " ,
568- "merge_whitelist_team_ids " ,
569- "approvals_whitelist_team_ids " ,
566+ "whitelist_team_i_ds " ,
567+ "force_push_whitelist_team_i_ds " ,
568+ "merge_whitelist_team_i_ds " ,
569+ "approvals_whitelist_team_i_ds " ,
570570 }
571571 return removeIDsFromProtectedBranch (ctx , p , 0 , teamID , columnNames )
572572}
0 commit comments