forked from forgejo/forgejo
Drop redundant columns from issue_user table (#638)
This commit is contained in:
parent
400b6fd61c
commit
68bdaf0a6b
3 changed files with 22 additions and 105 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue