summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-30 11:09:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-30 11:09:59 -0400
commit9f91dee53fc602a939abf1219ec6ddb128c2067c (patch)
tree7fbad8828a80a7cfa76123c6922712f9fdc7e743 /models
parenta6e12aaef6344fff43745baa755c6afa11935550 (diff)
downloadgitea-9f91dee53fc602a939abf1219ec6ddb128c2067c.tar.gz
gitea-9f91dee53fc602a939abf1219ec6ddb128c2067c.zip
Bug fix #45
Diffstat (limited to 'models')
-rw-r--r--models/models.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/models.go b/models/models.go
index 06533e45f9..be176b5d39 100644
--- a/models/models.go
+++ b/models/models.go
@@ -43,9 +43,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\n", DbCfg.Type)
}