File tree 4 files changed +0
-18
lines changed
4 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ func convertIntervalToDuration(x *xorm.Engine) (err error) {
41
41
_ , err = sess .Exec ("ALTER TABLE mirror MODIFY `interval` BIGINT" )
42
42
case "postgres" :
43
43
_ , err = sess .Exec ("ALTER TABLE mirror ALTER COLUMN \" interval\" SET DATA TYPE bigint" )
44
- case "tidb" :
45
- _ , err = sess .Exec ("ALTER TABLE mirror MODIFY `interval` BIGINT" )
46
44
case "mssql" :
47
45
_ , err = sess .Exec ("ALTER TABLE mirror ALTER COLUMN \" interval\" BIGINT" )
48
46
case "sqlite3" :
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ func changeU2FCounterType(x *xorm.Engine) error {
14
14
var err error
15
15
16
16
switch x .Dialect ().DriverName () {
17
- case "tidb" :
18
- fallthrough
19
17
case "mysql" :
20
18
_ , err = x .Exec ("ALTER TABLE `u2f_registration` MODIFY `counter` BIGINT" )
21
19
case "postgres" :
Original file line number Diff line number Diff line change 23
23
// EnableSQLite3 use SQLite3, set by build flag
24
24
EnableSQLite3 bool
25
25
26
- // EnableTiDB enable TiDB, set by build flag
27
- EnableTiDB bool
28
-
29
26
// Database holds the database settings
30
27
Database = struct {
31
28
Type string
@@ -124,14 +121,6 @@ func DBConnStr() (string, error) {
124
121
return "" , fmt .Errorf ("Failed to create directories: %v" , err )
125
122
}
126
123
connStr = fmt .Sprintf ("file:%s?cache=shared&mode=rwc&_busy_timeout=%d" , Database .Path , Database .Timeout )
127
- case "tidb" :
128
- if ! EnableTiDB {
129
- return "" , errors .New ("this binary version does not build support for TiDB" )
130
- }
131
- if err := os .MkdirAll (path .Dir (Database .Path ), os .ModePerm ); err != nil {
132
- return "" , fmt .Errorf ("Failed to create directories: %v" , err )
133
- }
134
- connStr = "goleveldb://" + Database .Path
135
124
default :
136
125
return "" , fmt .Errorf ("Unknown database type: %s" , Database .Type )
137
126
}
Original file line number Diff line number Diff line change @@ -105,9 +105,6 @@ func GlobalInit() {
105
105
if setting .EnableSQLite3 {
106
106
log .Info ("SQLite3 Supported" )
107
107
}
108
- if setting .EnableTiDB {
109
- log .Info ("TiDB Supported" )
110
- }
111
108
checkRunMode ()
112
109
113
110
if setting .InstallLock && setting .SSH .StartBuiltinServer {
You can’t perform that action at this time.
0 commit comments