Skip to content

Delete releases attachments if release is deleted #6068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix review
  • Loading branch information
adelowo committed Sep 20, 2019
commit e094f75d64bfcddca48c9ce2d529dbca7f88b20d
2 changes: 1 addition & 1 deletion models/migrations/v96.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func deleteOrphanedAttachments(x *xorm.Engine) error {
return err
}

_, err := sess.Delete(attachment)
_, err := sess.ID(attachment.ID).NoAutoCondition().Delete(attachment)
return err
})

Expand Down