[PR #2604] [MERGED] Rewrite migrations to not depend on future code changes #16501

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2604
Author: @daviian
Created: 9/25/2017
Status: Merged
Merged: 10/8/2017
Merged by: @lunny

Base: masterHead: backport/migration-fix


📝 Commits (10+)

📊 Changes

5 files changed (+83 additions, -63 deletions)

View changed files

📝 models/migrations/v15.go (+7 -13)
📝 models/migrations/v16.go (+18 -18)
📝 models/migrations/v37.go (+8 -5)
📝 models/migrations/v38.go (+14 -0)
📝 models/migrations/v39.go (+36 -27)

📄 Description

Backport of #2602


🔄 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/2604 **Author:** [@daviian](https://github.com/daviian) **Created:** 9/25/2017 **Status:** ✅ Merged **Merged:** 10/8/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `backport/migration-fix` --- ### 📝 Commits (10+) - [`bc80566`](https://github.com/go-gitea/gitea/commit/bc80566240928bc689b7c607ec66a10986df84f5) v38 migration used an outdated version of RepoUnit model (#2602) - [`741af60`](https://github.com/go-gitea/gitea/commit/741af60b4b6cf7e4cac4fccf39611255cfe72093) fix lint error - [`179333c`](https://github.com/go-gitea/gitea/commit/179333c7302fc2053d4d1c19b3662ead9eb18dcf) Fix time tracking migration - [`c9430b2`](https://github.com/go-gitea/gitea/commit/c9430b29a5220e2297aa9b93b70a25062f831509) Refactor code - [`c840545`](https://github.com/go-gitea/gitea/commit/c840545af32c149730612d9829bbc616e07fd5ff) Fix migration from Gogs - [`bfb97d5`](https://github.com/go-gitea/gitea/commit/bfb97d532ee61a3aaec2c36a0e15f55dfc2a52a6) v38 migration used an outdated version of RepoUnit model (#2602) - [`9e22110`](https://github.com/go-gitea/gitea/commit/9e2211066b928f4e3ec3c505132d4b07fea52b44) fix lint error - [`6035eda`](https://github.com/go-gitea/gitea/commit/6035eda15cc183e36ee30c7d214e04459ccee7e0) Fix time tracking migration - [`fb73cb0`](https://github.com/go-gitea/gitea/commit/fb73cb02b618811e41093a7d2fe970a045baa124) Refactor code - [`dd48773`](https://github.com/go-gitea/gitea/commit/dd48773e84759ea1a7cd6fd9a049f79fc3818425) Fix migration from Gogs ### 📊 Changes **5 files changed** (+83 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/v15.go` (+7 -13) 📝 `models/migrations/v16.go` (+18 -18) 📝 `models/migrations/v37.go` (+8 -5) 📝 `models/migrations/v38.go` (+14 -0) 📝 `models/migrations/v39.go` (+36 -27) </details> ### 📄 Description Backport of #2602 --- <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:12:06 -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#16501