mirror of
https://github.com/go-gitea/gitea
synced 2025-07-20 17:28:37 +00:00
Update xorm and fix dump command (#692)
* update xorm and fix dump * catch database init error * still use dumpTables * fix dump bool type * update vendor.json
This commit is contained in:
2
vendor/github.com/go-xorm/xorm/mysql_dialect.go
generated
vendored
2
vendor/github.com/go-xorm/xorm/mysql_dialect.go
generated
vendored
@@ -465,7 +465,7 @@ func (db *mysql) GetIndexes(tableName string) (map[string]*core.Index, error) {
|
||||
colName = strings.Trim(colName, "` ")
|
||||
var isRegular bool
|
||||
if strings.HasPrefix(indexName, "IDX_"+tableName) || strings.HasPrefix(indexName, "UQE_"+tableName) {
|
||||
indexName = indexName[5+len(tableName) : len(indexName)]
|
||||
indexName = indexName[5+len(tableName):]
|
||||
isRegular = true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user