mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-22 00:08:30 -04:00
add tidb support
This commit is contained in:
parent
10de16beb0
commit
aff773f1b9
9 changed files with 44 additions and 12 deletions
|
@ -8,9 +8,11 @@ package models
|
|||
|
||||
import (
|
||||
_ "github.com/go-xorm/tidb"
|
||||
"github.com/ngaut/log"
|
||||
_ "github.com/pingcap/tidb"
|
||||
)
|
||||
|
||||
func init() {
|
||||
EnableTidb = true
|
||||
log.SetLevelByString("error")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue