summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-12 16:19:10 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-12 16:19:10 -0400
commit47f3dd43a52d05b1f12921c4e9cc3300a4a49060 (patch)
treee7315a10e37b3f11875eb32cab3b2035e968a175 /models/models.go
parent802a110e4255d0860c3942feffd23b2376c75eb7 (diff)
parent25ecf562859ced8e6e84ac49ace03b595360bd26 (diff)
downloadgitea-47f3dd43a52d05b1f12921c4e9cc3300a4a49060.tar.gz
gitea-47f3dd43a52d05b1f12921c4e9cc3300a4a49060.zip
Merge branch 'master' of github.com:gogits/gogs into dev
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/models/models.go b/models/models.go
index b380d0e0f2..010228aed3 100644
--- a/models/models.go
+++ b/models/models.go
@@ -12,7 +12,6 @@ import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
"github.com/lunny/xorm"
- // _ "github.com/mattn/go-sqlite3"
"github.com/gogits/gogs/modules/base"
)
@@ -56,9 +55,9 @@ func NewTestEngine(x *xorm.Engine) (err error) {
case "postgres":
x, err = xorm.NewEngine("postgres", fmt.Sprintf("user=%s password=%s dbname=%s sslmode=%s",
DbCfg.User, DbCfg.Pwd, DbCfg.Name, DbCfg.SslMode))
- // case "sqlite3":
- // os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm)
- // x, err = xorm.NewEngine("sqlite3", DbCfg.Path)
+ case "sqlite3":
+ os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm)
+ x, err = xorm.NewEngine("sqlite3", DbCfg.Path)
default:
return fmt.Errorf("Unknown database type: %s", DbCfg.Type)
}