We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a880b17 commit b0d5bb9Copy full SHA for b0d5bb9
models/repo_indexer.go
@@ -86,6 +86,13 @@ func populateRepoIndexerAsynchronously() error {
86
return nil
87
}
88
89
+ // if there is any existing repo indexer metadata in the DB, delete it
90
+ // since we are starting afresh. Also, xorm requires deletes to have a
91
+ // condition, and we want to delete everything, thus 1=1.
92
+ if _, err := x.Where("1=1").Delete(new(RepoIndexerStatus)); err != nil {
93
+ return err
94
+ }
95
+
96
var maxRepoID int64
97
if _, err = x.Select("MAX(id)").Table("repository").Get(&maxRepoID); err != nil {
98
return err
0 commit comments