mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
upgrade xorm to v1.0.6 (#14246)
This commit is contained in:
1
vendor/xorm.io/xorm/schemas/column.go
generated
vendored
1
vendor/xorm.io/xorm/schemas/column.go
generated
vendored
@@ -51,6 +51,7 @@ type Column struct {
|
||||
func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable bool) *Column {
|
||||
return &Column{
|
||||
Name: name,
|
||||
IsJSON: sqlType.IsJson(),
|
||||
TableName: "",
|
||||
FieldName: fieldName,
|
||||
SQLType: sqlType,
|
||||
|
7
vendor/xorm.io/xorm/schemas/table.go
generated
vendored
7
vendor/xorm.io/xorm/schemas/table.go
generated
vendored
@@ -58,12 +58,7 @@ func (table *Table) ColumnsSeq() []string {
|
||||
}
|
||||
|
||||
func (table *Table) columnsByName(name string) []*Column {
|
||||
for k, cols := range table.columnsMap {
|
||||
if strings.EqualFold(k, name) {
|
||||
return cols
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return table.columnsMap[strings.ToLower(name)]
|
||||
}
|
||||
|
||||
// GetColumn returns column according column name, if column not found, return nil
|
||||
|
Reference in New Issue
Block a user