A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat: set question answer comment delete rank -1
LinkinStare54ebacc22d2
diff --git a/internal/migrations/v3.go b/internal/migrations/v3.goindex 2a252d0c..651b6dd0 100644--- a/internal/migrations/v3.go+++ b/internal/migrations/v3.go@@ -19,22 +19,22 @@ func addActivityTimeline(x *xorm.Engine) error {defaultConfigTable := []*entity.Config{{ID: 36, Key: "rank.question.add", Value: `1`},{ID: 37, Key: "rank.question.edit", Value: `200`},- {ID: 38, Key: "rank.question.delete", Value: `0`},+ {ID: 38, Key: "rank.question.delete", Value: `-1`},{ID: 39, Key: "rank.question.vote_up", Value: `15`},{ID: 40, Key: "rank.question.vote_down", Value: `125`},{ID: 41, Key: "rank.answer.add", Value: `1`},{ID: 42, Key: "rank.answer.edit", Value: `200`},- {ID: 43, Key: "rank.answer.delete", Value: `0`},+ {ID: 43, Key: "rank.answer.delete", Value: `-1`},{ID: 44, Key: "rank.answer.accept", Value: `1`},{ID: 45, Key: "rank.answer.vote_up", Value: `15`},{ID: 46, Key: "rank.answer.vote_down", Value: `125`},{ID: 47, Key: "rank.comment.add", Value: `1`},{ID: 48, Key: "rank.comment.edit", Value: `1`},- {ID: 49, Key: "rank.comment.delete", Value: `0`},+ {ID: 49, Key: "rank.comment.delete", Value: `-1`},{ID: 50, Key: "rank.report.add", Value: `1`},{ID: 51, Key: "rank.tag.add", Value: `1`},{ID: 52, Key: "rank.tag.edit", Value: `100`},- {ID: 53, Key: "rank.tag.delete", Value: `0`},+ {ID: 53, Key: "rank.tag.delete", Value: `-1`},{ID: 54, Key: "rank.tag.synonym", Value: `20000`},{ID: 55, Key: "rank.link.url_limit", Value: `10`},{ID: 56, Key: "rank.vote.detail", Value: `0`},