File tree 1 file changed +2
-0
lines changed 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ func Install(ctx *context.Context) {
57
57
form .DbPasswd = models .DbCfg .Passwd
58
58
form .DbName = models .DbCfg .Name
59
59
form .DbPath = models .DbCfg .Path
60
+ form .Charset = models .DbCfg .Charset
60
61
61
62
ctx .Data ["CurDbOption" ] = "MySQL"
62
63
switch models .DbCfg .Type {
@@ -246,6 +247,7 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
246
247
cfg .Section ("database" ).Key ("USER" ).SetValue (models .DbCfg .User )
247
248
cfg .Section ("database" ).Key ("PASSWD" ).SetValue (models .DbCfg .Passwd )
248
249
cfg .Section ("database" ).Key ("SSL_MODE" ).SetValue (models .DbCfg .SSLMode )
250
+ cfg .Section ("database" ).Key ("CHARSET" ).SetValue (models .DbCfg .Charset )
249
251
cfg .Section ("database" ).Key ("PATH" ).SetValue (models .DbCfg .Path )
250
252
251
253
cfg .Section ("" ).Key ("APP_NAME" ).SetValue (form .AppName )
You can’t perform that action at this time.
0 commit comments