mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-02 16:15:59 +08:00
db charset set utf-8
This commit is contained in:
@@ -52,7 +52,7 @@ func initMysqlDB() {
|
||||
}
|
||||
|
||||
log.NewInfo("open db ok ", dsn)
|
||||
|
||||
db.Set("gorm:table_options", "CHARSET=utf8")
|
||||
db.AutoMigrate(&Friend{},
|
||||
&FriendRequest{},
|
||||
&Group{},
|
||||
|
||||
Reference in New Issue
Block a user