Chore: Prevent xorm from interfering with indexes (#94790)

prevent xorm from interfering with indexes
This commit is contained in:
Diego Augusto Molina 2024-10-16 22:52:42 -03:00 committed by GitHub
parent e8f23bb2cf
commit e462974359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,8 +286,6 @@ func (engine *Engine) loadTableInfo(table *core.Table) error {
for _, name := range index.Cols { for _, name := range index.Cols {
if col := table.GetColumn(name); col != nil { if col := table.GetColumn(name); col != nil {
col.Indexes[index.Name] = index.Type col.Indexes[index.Name] = index.Type
} else {
return fmt.Errorf("unknown col %s in index %v of table %v, columns %v", name, index.Name, table.Name, table.ColumnsSeq())
} }
} }
} }