mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-17 03:01:35 +02:00
add INDEX for abuse_report.status
This commit is contained in:
parent
4b9c08a099
commit
a5e7a815d8
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue