diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-24 12:15:26 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-05-24 00:15:26 -0400 |
commit | d5a98a29690e13f717fb72e8635fbea57e58f546 (patch) | |
tree | b956c947814221d7a03bebc8516323266e81660e /templates/install.tmpl | |
parent | 181b7c99eddb373b4415b160dde9109cd4191878 (diff) | |
download | gitea-d5a98a29690e13f717fb72e8635fbea57e58f546.tar.gz gitea-d5a98a29690e13f717fb72e8635fbea57e58f546.zip |
Add support of utf8mb4 for mysql (#6992)
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r-- | templates/install.tmpl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl index f45052ccd0..f8d1ef04e4 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -28,7 +28,7 @@ </div> </div> - <div id="sql_settings" class="{{if or (eq .CurDbOption "SQLite3") (eq .CurDbOption "TiDB")}}hide{{end}}"> + <div id="sql_settings" class="{{if or (eq .CurDbOption "SQLite3")}}hide{{end}}"> <div class="inline required field {{if .Err_DbSetting}}error{{end}}"> <label for="db_host">{{.i18n.Tr "install.host"}}</label> <input id="db_host" name="db_host" value="{{.db_host}}"> @@ -64,6 +64,21 @@ </div> </div> + <div id="mysql_settings" class="{{if not (eq .CurDbOption "MySQL")}}hide{{end}}"> + <div class="inline required field"> + <label>{{.i18n.Tr "install.charset"}}</label> + <div class="ui selection database type dropdown"> + <input type="hidden" name="charset" value="{{if .charset}}{{.charset}}{{else}}utf8{{end}}"> + <div class="default text">utf8</div> + <i class="dropdown icon"></i> + <div class="menu"> + <div class="item" data-value="utf8">utf8</div> + <div class="item" data-value="utf8mb4">utf8mb4</div> + </div> + </div> + </div> + </div> + <div id="sqlite_settings" class="{{if not (or (eq .CurDbOption "SQLite3") (eq .CurDbOption "TiDB"))}}hide{{end}}"> <div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}"> <label for="db_path">{{.i18n.Tr "install.path"}}</label> |