-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Remove "CHARSET" config option for MySQL, always use "utf8mb4" #25413
Conversation
@techknowlogick I do not think this is "breaking" |
Marking as breaking so that should any user still have just utf8 in their config we can add a note to the blog post with a link to the doctor documentation. Edit, it also changes the config variable name. |
I do not see a case how this change would affect end users, so I do not think it's worth to mark it as breaking or make end users spend time on reading it. |
The new "MYSQL_CHARSET" is just a hidden fallback in case some users really really like to do something, but, I think we should never mention it. Just like I do not think any one really needs it. |
It fully removes an option that users may have been using (even if they should be using the newer version), and also, due to the rename it means that users will have to use a new key in the future. |
I am pretty sure the removal affects nothing. The "rename" won't be exposed for end users in any case. |
The Gitea instance will not work if database is |
I have tested, it works flawlessly If you have a bad case, please help me to know. |
Have you tested inputting an |
That's a longstanding problem. Not related to this PR (nothing changes) |
I don't think it's necessary to backport to v1.20 |
Then 1.20 still needs other fix |
But yes, we should document it as breaking when we don't use a key anymore. |
Oh, perhaps we should also remove the FAQ entry now. |
bbc55a2
to
c6212a9
Compare
c6212a9
to
1783b10
Compare
* origin/main: (47 commits) Move some regexp out of functions (go-gitea#25430) Show outdated comments in files changed tab (go-gitea#24936) Remove "CHARSET" config option for MySQL, always use "utf8mb4" (go-gitea#25413) Fine tune project board label colors and modal content background (go-gitea#25419) Fix missing commit message body when the message has leading newlines (go-gitea#25418) add python/poetry to devcontainer (go-gitea#25407) Refactor path & config system (go-gitea#25330) Add actor and status dropdowns to run list (go-gitea#25118) Use the new download domain replace the old (go-gitea#25405) Avoid polluting config file when "save" (go-gitea#25395) Fix dropdown icon layout on diff page (go-gitea#25397) Support configuration variables on Gitea Actions (go-gitea#24724) Substitute variables in path names of template repos too (go-gitea#25294) Navbar styling rework (go-gitea#25343) Fix blank dir message when uploading files from web editor (go-gitea#25391) Add git-lfs support to devcontainer (go-gitea#25385) Use qwtel.sqlite-viewer instead of alexcvzz.vscode-sqlite (go-gitea#25386) Use Actions git context instead of dynamically created buildkit one (go-gitea#25381) rename tributeValues to mentionValues (go-gitea#25375) Fix LDAP sync when Username Attribute is empty (go-gitea#25278) ...
In modern days, there is no reason to make users set "charset" anymore.
Close #25378
The key
[database].CHARSET
was removed completely as every newer (>10years) MySQL database supportsutf8mb4
already.There is a (deliberately) undocumented new fallback option if anyone still needs to use it, but we don't recommend using it as it simply causes problems.