增加判断是否存在表不存在则创建
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
aa3e66a37c
commit
86414244a8
|
@ -21,6 +21,14 @@ func init() {
|
|||
println(err.Error())
|
||||
|
||||
}
|
||||
res, err := engine.IsTableExist("wol")
|
||||
if !res {
|
||||
CreateTable()
|
||||
}
|
||||
if err != nil {
|
||||
println(err.Error())
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
func CreateTable() int {
|
||||
|
|
Loading…
Reference in New Issue