mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Drop redundant columns from issue_user table (#638)
This commit is contained in:
@@ -1424,7 +1424,6 @@ func DeleteRepository(uid, repoID int64) error {
|
||||
&Watch{RepoID: repoID},
|
||||
&Star{RepoID: repoID},
|
||||
&Mirror{RepoID: repoID},
|
||||
&IssueUser{RepoID: repoID},
|
||||
&Milestone{RepoID: repoID},
|
||||
&Release{RepoID: repoID},
|
||||
&Collaboration{RepoID: repoID},
|
||||
@@ -1445,6 +1444,9 @@ func DeleteRepository(uid, repoID int64) error {
|
||||
if _, err = sess.Delete(&Comment{IssueID: issues[i].ID}); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err = sess.Delete(&IssueUser{IssueID: issues[i].ID}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
attachments := make([]*Attachment, 0, 5)
|
||||
if err = sess.
|
||||
|
Reference in New Issue
Block a user