This commit is contained in:
Liang Ding
2022-07-17 12:22:32 +08:00
parent c8ea858976
commit 505b973c2d
70 changed files with 671 additions and 942 deletions

View File

@@ -20,6 +20,7 @@ import (
"database/sql"
"strings"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/util"
)
@@ -34,7 +35,7 @@ func getDatabaseVer() (ret string) {
row := db.QueryRow(stmt, key)
if err := row.Scan(&ret); nil != err {
if !strings.Contains(err.Error(), "no such table") {
util.LogErrorf("query database version failed: %s", err)
logging.LogErrorf("query database version failed: %s", err)
}
}
return