summaryrefslogtreecommitdiffstats
path: root/models/db
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-04-11 09:12:40 +0800
committerGitHub <noreply@github.com>2024-04-11 01:12:40 +0000
commitf0bfad29ea00eea7fd421d51352825aaa931aba8 (patch)
tree95bc6510ef6dd36c26ba3431ccfe395a7a5f6abd /models/db
parent17c7ebb327faf6f8b6d659a0adb451b553405116 (diff)
downloadgitea-f0bfad29ea00eea7fd421d51352825aaa931aba8.tar.gz
gitea-f0bfad29ea00eea7fd421d51352825aaa931aba8.zip
Replace MSSQL driver with a better maintained version (#30390)
As the latest tag of `github.com/denisenkom/go-mssqldb` is in 2022, but as a fork of it, `github.com/microsoft/go-mssqldb` has more activities than the original repository. We can convert the driver to the fork. Since the interface of Go database driver are the same, it should have no any affect for the end users.
Diffstat (limited to 'models/db')
-rwxr-xr-xmodels/db/engine.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/db/engine.go b/models/db/engine.go
index 2a2743e927..8684c4e2f1 100755
--- a/models/db/engine.go
+++ b/models/db/engine.go
@@ -21,9 +21,9 @@ import (
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
- _ "github.com/denisenkom/go-mssqldb" // Needed for the MSSQL driver
- _ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver
- _ "github.com/lib/pq" // Needed for the Postgresql driver
+ _ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver
+ _ "github.com/lib/pq" // Needed for the Postgresql driver
+ _ "github.com/microsoft/go-mssqldb" // Needed for the MSSQL driver
)
var (