Remove useless field in user. Use default utf8 when installing.

This commit is contained in:
zicla
2019-05-31 02:34:34 +08:00
parent b12cc3f306
commit bc7c720218
3 changed files with 4 additions and 14 deletions

View File

@ -226,8 +226,8 @@ func (this *InstallController) CreateTable(writer http.ResponseWriter, request *
for _, iBase := range this.tableNames {
//complete the missing fields or create table.
db1 := db.AutoMigrate(iBase)
//complete the missing fields or create table. use utf8 charset
db1 := db.Set("gorm:table_options", "CHARSET=utf8").AutoMigrate(iBase)
this.PanicError(db1.Error)
exist, allFields, missingFields := this.getTableMeta(db, iBase)