-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Increase Content field size of gpg_key and public_key to MEDIUMTEXT #20896
Increase Content field size of gpg_key and public_key to MEDIUMTEXT #20896
Conversation
Unfortunately some keys are too big to fix within the 65535 limit of TEXT on MySQL this causes issues with these large keys. Therefore increase these fields to MEDIUMTEXT. Fix go-gitea#20894 Signed-off-by: Andrew Thornton <art27@cantab.net>
Unfortunately the migration cannot be backported to 1.17 so affected users will have to use |
Should we mark this PR as breaking then so that we think of it when releasing the changelog? |
Do that on the backport. |
Are we good on other DBs besides MySQL? |
Yes, only MySQL has this limitation as far as I'm aware. |
Codecov Report
@@ Coverage Diff @@
## main #20896 +/- ##
==========================================
+ Coverage 46.74% 46.96% +0.21%
==========================================
Files 989 993 +4
Lines 136393 136766 +373
==========================================
+ Hits 63761 64232 +471
+ Misses 64778 64650 -128
- Partials 7854 7884 +30
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
make lgtm wrok |
…o-gitea#20896) Backport go-gitea#20896 Unfortunately some keys are too big to fix within the 65535 limit of TEXT on MySQL this causes issues with these large keys. Therefore increase these fields to MEDIUMTEXT. Unfortunately the migration in go-gitea#20896 cannot be backported to 1.17 so affected users will have to use `gitea doctor recreate-table gpg_key public_key` Fix go-gitea#20894 Signed-off-by: Andrew Thornton <art27@cantab.net>
…20896) (#20911) Backport #20896 Unfortunately some keys are too big to fix within the 65535 limit of TEXT on MySQL this causes issues with these large keys. Therefore increase these fields to MEDIUMTEXT. Unfortunately the migration in #20896 cannot be backported to 1.17 so affected users will have to use `gitea doctor recreate-table gpg_key public_key` Fix #20894 Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net>
* giteaofficial/main: Changelog 1.17.1 (go-gitea#20833) (go-gitea#20919) Fix typo in backup documentation (pgdump->pg_dump) (go-gitea#20913) Increase Content field size of gpg_key and public_key to MEDIUMTEXT (go-gitea#20896) Improve single repo action for issue and pull requests (go-gitea#20730) Remove deprecated licenses (go-gitea#20222)
…o-gitea#20896) Unfortunately some keys are too big to fix within the 65535 limit of TEXT on MySQL this causes issues with these large keys. Therefore increase these fields to MEDIUMTEXT. Fix go-gitea#20894 Signed-off-by: Andrew Thornton <art27@cantab.net>
Unfortunately go-gitea#20896 does not completely prevent Data too long issues and GPGImportKey needs to be increased too. Fix go-gitea#22896 Signed-off-by: Andrew Thornton <art27@cantab.net>
Unfortunately some keys are too big to fix within the 65535 limit of TEXT on MySQL
this causes issues with these large keys.
Therefore increase these fields to MEDIUMTEXT.
Fix #20894
Signed-off-by: Andrew Thornton art27@cantab.net