diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-21 18:49:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 10:49:25 +0000 |
commit | ce46834b938eb687152a680669ada95a26304178 (patch) | |
tree | 7a234a4673d41bb0f374670a02013b62f1e5d851 /templates/install.tmpl | |
parent | dfd19fa38c9ee004c5d7e73f51af5981adcb5e6d (diff) | |
download | gitea-ce46834b938eb687152a680669ada95a26304178.tar.gz gitea-ce46834b938eb687152a680669ada95a26304178.zip |
Remove "CHARSET" config option for MySQL, always use "utf8mb4" (#25413)
In modern days, there is no reason to make users set "charset" anymore.
Close #25378
## :warning: BREAKING
The key `[database].CHARSET` was removed completely as every newer
(>10years) MySQL database supports `utf8mb4` 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.
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r-- | templates/install.tmpl | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl index 1cd5dcff8b..3df4455416 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -44,7 +44,6 @@ <div class="inline required field {{if .Err_DbSetting}}error{{end}}"> <label for="db_name">{{.locale.Tr "install.db_name"}}</label> <input id="db_name" name="db_name" value="{{.db_name}}"> - <span class="help">{{.locale.Tr "install.db_helper"}}</span> </div> </div> @@ -69,20 +68,6 @@ </div> </div> - <div class="gt-hidden" data-db-setting-for="mysql"> - <div class="inline required field"> - <label>{{.locale.Tr "install.charset"}}</label> - <div class="ui selection database type dropdown"> - <input type="hidden" name="charset" value="{{if .charset}}{{.charset}}{{else}}utf8mb4{{end}}"> - <div class="default text">utf8mb4</div> - {{svg "octicon-triangle-down" 14 "dropdown icon"}} - <div class="menu"> - <div class="item" data-value="utf8mb4">utf8mb4</div> - </div> - </div> - </div> - </div> - <div class="gt-hidden" data-db-setting-for="sqlite3"> <div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}"> <label for="db_path">{{.locale.Tr "install.path"}}</label> |