diff --git a/pkg/common/db/mysql.go b/pkg/common/db/mysql.go index 808cb8fc8..d075510b5 100644 --- a/pkg/common/db/mysql.go +++ b/pkg/common/db/mysql.go @@ -95,7 +95,10 @@ func initMysqlDB() { log.NewInfo("CreateTable Black") db.CreateTable(&Black{}) } - + if !db.HasTable(&ChatLog{}) { + log.NewInfo("CreateTable Black") + db.CreateTable(&ChatLog{}) + } return sqlTable := "CREATE TABLE IF NOT EXISTS `user` (" +