From bae4af47f77a195a12a0437584d667465e826e12 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期一, 17 八月 2020 16:09:28 +0800 Subject: [PATCH] add log --- models/db.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/db.go b/models/db.go index 0ceaf78..8821eeb 100644 --- a/models/db.go +++ b/models/db.go @@ -10,9 +10,9 @@ func InitDb() { dbUrl := beego.AppConfig.String("dbUrl") rootPath := util.GetAppRootPath() - dbPath := rootPath + dbUrl + dbPath := rootPath +"/"+ dbUrl orm.RegisterDriver("sqlite", orm.DRSqlite) _ = orm.RegisterDataBase("default", "sqlite3", dbPath) - orm.RegisterModel(new(User), new(UserCar), new(SysUpgrade)) + orm.RegisterModel(new(User), new(UserCar), new(SysUpgrade), new(UserClient), new(Restriction)) _ = orm.RunSyncdb("default", false, true) } -- Gitblit v1.8.0