提交 b7a8f6c2 编写于 作者: programor_guo's avatar programor_guo

db

上级 f574017b
......@@ -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` (" +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册