mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-08 11:05:59 +08:00
conversation add
This commit is contained in:
@@ -59,7 +59,7 @@ func initMysqlDB() {
|
||||
&GroupMember{},
|
||||
&GroupRequest{},
|
||||
&User{},
|
||||
&Black{}, &ChatLog{}, &Register{})
|
||||
&Black{}, &ChatLog{}, &Register{}, &Conversation{})
|
||||
db.Set("gorm:table_options", "CHARSET=utf8")
|
||||
db.Set("gorm:table_options", "collation=utf8_unicode_ci")
|
||||
|
||||
@@ -105,6 +105,10 @@ func initMysqlDB() {
|
||||
log.NewInfo("CreateTable Black")
|
||||
db.CreateTable(&Register{})
|
||||
}
|
||||
if !db.HasTable(&Conversation{}) {
|
||||
log.NewInfo("CreateTable Black")
|
||||
db.CreateTable(&Conversation{})
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user