summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_10/v92.go
blob: 9080108594cd08ba49fdaf0e8c26abcf88199241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_10 //nolint

import (
	"xorm.io/builder"
	"xorm.io/xorm"
)

func RemoveLingeringIndexStatus(x *xorm.Engine) error {
	_, err := x.Exec(builder.Delete(builder.NotIn("`repo_id`", builder.Select("`id`").From("`repository`"))).From("`repo_indexer_status`"))
	return err
}