This commit is contained in:
Gordon
2022-02-10 11:41:34 +08:00
parent f574017b66
commit b7a8f6c2a1
+4 -1
View File
@@ -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` (" +