mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
db charset set utf-8
This commit is contained in:
parent
1a0f626a80
commit
ca0f095d6b
@ -52,7 +52,7 @@ func initMysqlDB() {
|
||||
}
|
||||
|
||||
log.NewInfo("open db ok ", dsn)
|
||||
|
||||
db.Set("gorm:table_options", "CHARSET=utf8")
|
||||
db.AutoMigrate(&Friend{},
|
||||
&FriendRequest{},
|
||||
&Group{},
|
||||
|
Loading…
x
Reference in New Issue
Block a user