增加判断是否存在表不存在则创建
continuous-integration/drone/push Build is passing Details

This commit is contained in:
giaogiao 2023-09-13 17:32:27 +08:00
parent aa3e66a37c
commit 86414244a8
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ func init() {
println(err.Error()) println(err.Error())
} }
res, err := engine.IsTableExist("wol")
if !res {
CreateTable()
}
if err != nil {
println(err.Error())
}
} }
func CreateTable() int { func CreateTable() int {