From 86414244a858eb8ea65368b63bdbf7a3f68d7ea2 Mon Sep 17 00:00:00 2001 From: giaogiao Date: Wed, 13 Sep 2023 17:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=AD=98=E5=9C=A8=E8=A1=A8=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E5=88=99=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/database.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/database/database.go b/database/database.go index 2db470a..4041903 100644 --- a/database/database.go +++ b/database/database.go @@ -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 {