conversation add

This commit is contained in:
Gordon
2022-02-18 12:56:43 +08:00
parent 3c7c7cde3c
commit 68e7dfb1cc
2 changed files with 18 additions and 1 deletions
+5 -1
View File
@@ -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