[PR #1194] [MERGED] Fix upgrade failed after ever rollback #15804

Closed
opened 2025-11-02 11:54:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1194
Author: @lunny
Created: 3/10/2017
Status: Merged
Merged: 3/10/2017
Merged by: @lunny

Base: masterHead: lunny/fix_rollback_upgrade


📝 Commits (3)

  • c41cbe2 fix upgrade failed after rollback
  • 24f934e fix upgrade failed after rollback
  • ffab308 fix possible upgrade twice fail after rollback

📊 Changes

3 files changed (+17 additions, -3 deletions)

View changed files

📝 models/migrations/v16.go (+6 -0)
📝 models/migrations/v19.go (+8 -2)
📝 models/migrations/v20.go (+3 -1)

📄 Description

After upgrade to a gitea new version and then downgrade an old version, then if you upgrade again, you will encounter some migrations issues. This PR will check more conditions on migrations and ignore this situation to let upgrade smoothly.


🔄 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/1194 **Author:** [@lunny](https://github.com/lunny) **Created:** 3/10/2017 **Status:** ✅ Merged **Merged:** 3/10/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/fix_rollback_upgrade` --- ### 📝 Commits (3) - [`c41cbe2`](https://github.com/go-gitea/gitea/commit/c41cbe20a5c32fa5cfdad1dc00f7900c1dd198dd) fix upgrade failed after rollback - [`24f934e`](https://github.com/go-gitea/gitea/commit/24f934e2a55a142a039b6999b078ce6596587a6c) fix upgrade failed after rollback - [`ffab308`](https://github.com/go-gitea/gitea/commit/ffab3083a112d963fd976d72068ae6eb36c2b8c6) fix possible upgrade twice fail after rollback ### 📊 Changes **3 files changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/v16.go` (+6 -0) 📝 `models/migrations/v19.go` (+8 -2) 📝 `models/migrations/v20.go` (+3 -1) </details> ### 📄 Description After upgrade to a gitea new version and then downgrade an old version, then if you upgrade again, you will encounter some migrations issues. This PR will check more conditions on migrations and ignore this situation to let upgrade smoothly. --- <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 11:54:58 -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#15804