From d3a5ff7b6b16ea35bd31fcef902b08dcf266de9c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 30 Nov 2015 20:50:40 -0500 Subject: fix #2042 --- models/repo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/repo.go b/models/repo.go index bc8d4cd49b..da4ecdc8bc 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1120,6 +1120,7 @@ func DeleteRepository(uid, repoID int64) error { &Access{RepoID: repo.ID}, &Action{RepoID: repo.ID}, &Watch{RepoID: repoID}, + &Star{RepoID: repoID}, &Mirror{RepoID: repoID}, &IssueUser{RepoID: repoID}, &Milestone{RepoID: repoID}, @@ -1571,7 +1572,7 @@ func CheckRepoStats() { repoStatsCheck(checkers[i]) } - // FIXME: use checker when v0.8, stop supporting old fork repo format. + // FIXME: use checker when v0.9, stop supporting old fork repo format. // ***** START: Repository.NumForks ***** results, err := x.Query("SELECT repo.id FROM `repository` repo WHERE repo.num_forks!=(SELECT COUNT(*) FROM `repository` WHERE fork_id=repo.id)") if err != nil { -- cgit v1.2.3