-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Prohibit automatic downgrades #13108
Prohibit automatic downgrades #13108
Conversation
@lafriks added print to stderr too while testing the backport ... I noticed it wont show up in the terminal - hope It's still fine |
backport #13111 |
Or we can add a flag or an environment to force downgrade, but not update the database manually. |
@lunny did had a quick look, a flag would be a nice optional enhancement, but we have to refactor some code then, so migration functions can have options then ... gitea/models/migrations/migrations.go Lines 290 to 291 in 0e4f663
|
Codecov Report
@@ Coverage Diff @@
## master #13108 +/- ##
==========================================
- Coverage 42.51% 42.45% -0.07%
==========================================
Files 673 673
Lines 74116 74118 +2
==========================================
- Hits 31512 31466 -46
- Misses 37484 37551 +67
+ Partials 5120 5101 -19
Continue to review full report at Codecov.
|
Co-authored-by: Cirno the Strongest <[email protected]>
🚀 |
* Prohibit automatic downgrades * do not only log, print to stderr too * Update models/migrations/migrations.go * Update models/migrations/migrations.go Co-authored-by: Cirno the Strongest <[email protected]> * a nit Co-authored-by: zeripath <[email protected]> Co-authored-by: Cirno the Strongest <[email protected]>
close #13107