mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
upgrade xorm to v1.0.6 (#14246)
This commit is contained in:
parent
8db0372a45
commit
126c9331d6
19 changed files with 91 additions and 24 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue