From a5e7a815d89a5a574c195054115cb4ad5f1c38e8 Mon Sep 17 00:00:00 2001 From: floss4good Date: Tue, 1 Apr 2025 01:23:57 +0300 Subject: [PATCH] add INDEX for abuse_report.status --- models/moderation/abuse_report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/moderation/abuse_report.go b/models/moderation/abuse_report.go index 0a4edb10e8..dce91da32c 100644 --- a/models/moderation/abuse_report.go +++ b/models/moderation/abuse_report.go @@ -90,7 +90,7 @@ func (t ReportedContentType) IsValid() bool { // AbuseReport represents a report of abusive content. type AbuseReport struct { ID int64 `xorm:"pk autoincr"` - Status ReportStatusType `xorm:"NOT NULL DEFAULT 1"` + Status ReportStatusType `xorm:"INDEX NOT NULL DEFAULT 1"` // The ID of the user who submitted the report. ReporterID int64 `xorm:"NOT NULL"` // Reported content type: user/organization profile, repository, issue/pull or comment.