[PR #2296] [MERGED] Only update needed columns when update user #16329

Closed
opened 2025-11-02 12:07:57 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2296
Author: @lunny
Created: 8/11/2017
Status: Merged
Merged: 8/12/2017
Merged by: @lunny

Base: masterHead: lunny/update_user_cols


📝 Commits (2)

  • 1ed48e5 only update needed columns when update user
  • adf019a fix missing update_unix column

📊 Changes

6 files changed (+45 additions, -17 deletions)

View changed files

📝 cmd/admin.go (+1 -1)
📝 models/user.go (+29 -4)
📝 routers/api/v1/org/org.go (+1 -1)
📝 routers/user/auth.go (+10 -8)
📝 routers/user/auth_openid.go (+2 -1)
📝 routers/user/setting.go (+2 -2)

📄 Description

Also fix #1882. After this merged, I will back ported to branch release/v1.1.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2296 **Author:** [@lunny](https://github.com/lunny) **Created:** 8/11/2017 **Status:** ✅ Merged **Merged:** 8/12/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/update_user_cols` --- ### 📝 Commits (2) - [`1ed48e5`](https://github.com/go-gitea/gitea/commit/1ed48e5266951fe12c3f39102bd05dee12951106) only update needed columns when update user - [`adf019a`](https://github.com/go-gitea/gitea/commit/adf019a47b8b788d676f5ecf4bb7e4aac254c484) fix missing update_unix column ### 📊 Changes **6 files changed** (+45 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `cmd/admin.go` (+1 -1) 📝 `models/user.go` (+29 -4) 📝 `routers/api/v1/org/org.go` (+1 -1) 📝 `routers/user/auth.go` (+10 -8) 📝 `routers/user/auth_openid.go` (+2 -1) 📝 `routers/user/setting.go` (+2 -2) </details> ### 📄 Description Also fix #1882. After this merged, I will back ported to branch release/v1.1. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:07:57 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16329