mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
nil modify
This commit is contained in:
parent
544e60eb6d
commit
d2b411ecbb
@ -52,7 +52,6 @@ func initMysqlDB() {
|
||||
}
|
||||
|
||||
log.NewInfo("open db ok ", dsn)
|
||||
db.Set("gorm:table_options", "CHARSET=utf8")
|
||||
db.AutoMigrate(&Friend{},
|
||||
&FriendRequest{},
|
||||
&Group{},
|
||||
@ -60,6 +59,8 @@ func initMysqlDB() {
|
||||
&GroupRequest{},
|
||||
&User{},
|
||||
&Black{})
|
||||
db.Set("gorm:table_options", "CHARSET=utf8")
|
||||
|
||||
//
|
||||
//if !db.HasTable(&Friend{}) {
|
||||
// log.NewInfo("CreateTable Friend")
|
||||
|
Loading…
x
Reference in New Issue
Block a user