aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v96.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v96.go')
-rw-r--r--models/migrations/v96.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v96.go b/models/migrations/v96.go
index 5c2135ffc6..34f67534c2 100644
--- a/models/migrations/v96.go
+++ b/models/migrations/v96.go
@@ -27,7 +27,7 @@ func deleteOrphanedAttachments(x *xorm.Engine) error {
defer sess.Close()
err := sess.BufferSize(setting.Database.IterateBufferSize).
- Where("`comment_id` = 0 and (`release_id` = 0 or `release_id` not in (select `id` from `release`))").Cols("uuid").
+ Where("`issue_id` = 0 and (`release_id` = 0 or `release_id` not in (select `id` from `release`))").Cols("uuid").
Iterate(new(Attachment),
func(idx int, bean interface{}) error {
attachment := bean.(*Attachment)