-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Deprecate very old migrations #9953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
secound solution would be finding the bugs and fixing them ... but your idear is easyer for us devs ... |
We could probably support migrations for last five or six major versions |
What would you think should be the earliest version we should still support migrating from in 1.12?
|
There are no migration changes between 1.7.0 and 1.7.6, only one minor between 1.6.0 and 1.6.4. I think it makes sense to support from any minor version of the major version supported, as new database changes should normally be avoided in minor versions. |
Gitea version: 1.12
I've seen many issues with users being unable to upgrade directly from their very old version into 1.9, 1.10, etc. Our usual response (which solves their problem) is to attempt migrating in smaller steps (e.g. 1.4.x -> 1.5.3, 1.5.x -> 1.6.4, etc.).
Since upgrading from such old versions seems broken, what if (just this time, not as a regular thing) we stop supporting migrating versions prior to (say) 1.6.0, and force users to use older giteas to do the intermediate steps? There's already code for that, but the bar is set at 0.6.0.
gitea/models/migrations/migrations.go
Line 30 in bfdfa9a
gitea/models/migrations/migrations.go
Lines 71 to 87 in bfdfa9a
gitea/models/migrations/migrations.go
Lines 330 to 335 in bfdfa9a
The text was updated successfully, but these errors were encountered: