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
-2
View File
@@ -286,8 +286,6 @@ func (engine *Engine) loadTableInfo(table *core.Table) error {
for _, name := range index.Cols {
if col := table.GetColumn(name); col != nil {
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())
}
}
}