diff --git a/pkg/util/xorm/engine.go b/pkg/util/xorm/engine.go index ba2136414b1..88135ef7a7c 100644 --- a/pkg/util/xorm/engine.go +++ b/pkg/util/xorm/engine.go @@ -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()) } } }