summaryrefslogtreecommitdiffstats
path: root/models/models_sqlite.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-12 16:24:09 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-12 16:24:09 -0400
commit23bba7633bbd8ae8f9f41404352c327f9e8c9fdc (patch)
treea237e08392c8ce860cf8c054d20fb46e125f141b /models/models_sqlite.go
parentd60f7b85e53d0d2fbef9d8e2a8b539f9c0d97233 (diff)
downloadgitea-23bba7633bbd8ae8f9f41404352c327f9e8c9fdc.tar.gz
gitea-23bba7633bbd8ae8f9f41404352c327f9e8c9fdc.zip
Mirror fix on sqlite3 tag
Diffstat (limited to 'models/models_sqlite.go')
-rw-r--r--models/models_sqlite.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/models/models_sqlite.go b/models/models_sqlite.go
index 02c3f58249..1d80823fe5 100644
--- a/models/models_sqlite.go
+++ b/models/models_sqlite.go
@@ -1,11 +1,15 @@
-// +build sqlite
-
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
+// +build sqlite
+
package models
import (
_ "github.com/mattn/go-sqlite3"
)
+
+func init() {
+ EnableSQLite3 = true
+}