[PR #2482] [MERGED] Use created & updated instead BeforeInsert & BeforeUpdate #16422

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2482
Author: @lunny
Created: 9/10/2017
Status: Merged
Merged: 9/13/2017
Merged by: @lafriks

Base: masterHead: lunny/use_created


📝 Commits (6)

  • 5f3f572 use created & updated instead BeforeInsert & BeforeUpdate
  • af3a793 fix vendor checksum
  • 06e652e only show generated SQL when development mode
  • 791d07a remove extra update column updated_unix
  • d43d2d1 remove trace config
  • ca21c78 Merge branch 'master' into lunny/use_created

📊 Changes

48 files changed (+481 additions, -679 deletions)

View changed files

📝 models/action.go (+1 -7)
📝 models/admin.go (+1 -6)
📝 models/attachment.go (+1 -6)
📝 models/branches.go (+2 -13)
📝 models/issue.go (+2 -10)
📝 models/issue_comment.go (+2 -14)
📝 models/lfs.go (+3 -7)
📝 models/login_source.go (+2 -13)
📝 models/models.go (+1 -0)
📝 models/repo.go (+2 -13)
📝 models/repo_mirror.go (+12 -4)
📝 models/ssh_key.go (+8 -28)
📝 models/status.go (+2 -13)
📝 models/token.go (+2 -12)
📝 models/twofactor.go (+2 -12)
📝 models/unit_tests.go (+1 -0)
📝 models/user.go (+2 -10)
📝 models/webhook.go (+2 -15)
📝 vendor/github.com/go-xorm/core/type.go (+3 -2)
📝 vendor/github.com/go-xorm/xorm/README.md (+1 -1)

...and 28 more files

📄 Description

Also update xorm to the latest version.


🔄 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/2482 **Author:** [@lunny](https://github.com/lunny) **Created:** 9/10/2017 **Status:** ✅ Merged **Merged:** 9/13/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `lunny/use_created` --- ### 📝 Commits (6) - [`5f3f572`](https://github.com/go-gitea/gitea/commit/5f3f5729b76c1a3af66143534d7f5701e9b51cc5) use created & updated instead BeforeInsert & BeforeUpdate - [`af3a793`](https://github.com/go-gitea/gitea/commit/af3a793c3711e554a0d4ca21129cfa9a4a4a9344) fix vendor checksum - [`06e652e`](https://github.com/go-gitea/gitea/commit/06e652e135e344426be74b7eea9b974cfc4780cd) only show generated SQL when development mode - [`791d07a`](https://github.com/go-gitea/gitea/commit/791d07a334a6c1bc567b7757c63916c41fd4a299) remove extra update column updated_unix - [`d43d2d1`](https://github.com/go-gitea/gitea/commit/d43d2d14072b780d8ebe3848236d1d80d562ca91) remove trace config - [`ca21c78`](https://github.com/go-gitea/gitea/commit/ca21c7895ee913447e0f6447d917b5e15f4ac9e5) Merge branch 'master' into lunny/use_created ### 📊 Changes **48 files changed** (+481 additions, -679 deletions) <details> <summary>View changed files</summary> 📝 `models/action.go` (+1 -7) 📝 `models/admin.go` (+1 -6) 📝 `models/attachment.go` (+1 -6) 📝 `models/branches.go` (+2 -13) 📝 `models/issue.go` (+2 -10) 📝 `models/issue_comment.go` (+2 -14) 📝 `models/lfs.go` (+3 -7) 📝 `models/login_source.go` (+2 -13) 📝 `models/models.go` (+1 -0) 📝 `models/repo.go` (+2 -13) 📝 `models/repo_mirror.go` (+12 -4) 📝 `models/ssh_key.go` (+8 -28) 📝 `models/status.go` (+2 -13) 📝 `models/token.go` (+2 -12) 📝 `models/twofactor.go` (+2 -12) 📝 `models/unit_tests.go` (+1 -0) 📝 `models/user.go` (+2 -10) 📝 `models/webhook.go` (+2 -15) 📝 `vendor/github.com/go-xorm/core/type.go` (+3 -2) 📝 `vendor/github.com/go-xorm/xorm/README.md` (+1 -1) _...and 28 more files_ </details> ### 📄 Description Also update xorm to the latest version. --- <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:10:16 -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#16422