mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Upgrade xorm to v1.1.0 (#15869)
This commit is contained in:
5
vendor/xorm.io/xorm/schemas/table.go
generated
vendored
5
vendor/xorm.io/xorm/schemas/table.go
generated
vendored
@@ -90,23 +90,28 @@ func (table *Table) PKColumns() []*Column {
|
||||
return columns
|
||||
}
|
||||
|
||||
// ColumnType returns a column's type
|
||||
func (table *Table) ColumnType(name string) reflect.Type {
|
||||
t, _ := table.Type.FieldByName(name)
|
||||
return t.Type
|
||||
}
|
||||
|
||||
// AutoIncrColumn returns autoincrement column
|
||||
func (table *Table) AutoIncrColumn() *Column {
|
||||
return table.GetColumn(table.AutoIncrement)
|
||||
}
|
||||
|
||||
// VersionColumn returns version column's information
|
||||
func (table *Table) VersionColumn() *Column {
|
||||
return table.GetColumn(table.Version)
|
||||
}
|
||||
|
||||
// UpdatedColumn returns updated column's information
|
||||
func (table *Table) UpdatedColumn() *Column {
|
||||
return table.GetColumn(table.Updated)
|
||||
}
|
||||
|
||||
// DeletedColumn returns deleted column's information
|
||||
func (table *Table) DeletedColumn() *Column {
|
||||
return table.GetColumn(table.Deleted)
|
||||
}
|
||||
|
Reference in New Issue
Block a user