summaryrefslogtreecommitdiffstats
path: root/models/migrations/migrations.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-04 03:36:56 +0200
committerGitHub <noreply@github.com>2020-09-04 09:36:56 +0800
commit6c5266c9cadf500ec8a166066bf4452801cc2545 (patch)
tree5f32a7e3a8438e07ea013f8a2db0069460795dc9 /models/migrations/migrations.go
parent42a5e39b3bb17cf006a5d04887148a5ea9719f32 (diff)
downloadgitea-6c5266c9cadf500ec8a166066bf4452801cc2545.tar.gz
gitea-6c5266c9cadf500ec8a166066bf4452801cc2545.zip
[BugFix] Fix comment broken issue ref dependence (#12651)
* deleteIssuesByRepoID: delete related CommentTypeRemoveDependency & CommentTypeAddDependency comments too * Ignore ErrIssueNotExist on comment.LoadDepIssueDetails() * Add migration * Ignore 'dependent_issue_id = 0' case * exchange as per @lunny Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r--models/migrations/migrations.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 721b045fdc..6d27934f6d 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -228,6 +228,8 @@ var migrations = []Migration{
NewMigration("Add projects info to repository table", addProjectsInfo),
// v147 -> v148
NewMigration("create review for 0 review id code comments", createReviewsForCodeComments),
+ // v148 -> v149
+ NewMigration("remove issue dependency comments who refer to non existing issues", purgeInvalidDependenciesComments),
}
// GetCurrentDBVersion returns the current db version