1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-20 17:28:37 +00:00

update xorm for bugs fix (#728)

This commit is contained in:
Lunny Xiao
2017-01-23 19:11:57 +08:00
committed by GitHub
parent a8048c19f3
commit 907b6f943c
3 changed files with 5 additions and 5 deletions

View File

@@ -317,7 +317,7 @@ func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Colu
col.DefaultIsEmpty = true
for idx, field := range fields {
if idx == 0 {
col.Name = strings.Trim(field, "`[] ")
col.Name = strings.Trim(strings.Trim(field, "`[] "), `"`)
continue
} else if idx == 1 {
col.SQLType = core.SQLType{Name: field, DefaultLength: 0, DefaultLength2: 0}