提交 ca0f095d 编写于 作者: programor_guo's avatar programor_guo

db charset set utf-8

上级 1a0f626a
......@@ -52,7 +52,7 @@ func initMysqlDB() {
}
log.NewInfo("open db ok ", dsn)
db.Set("gorm:table_options", "CHARSET=utf8")
db.AutoMigrate(&Friend{},
&FriendRequest{},
&Group{},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册