summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-12-27 21:30:58 +0100
committerzeripath <art27@cantab.net>2019-12-27 20:30:58 +0000
commitf2d03cda96eb5febbf9801f6b6cf5daa37220bc9 (patch)
tree8906922ca58d47634ec2b6237f00a87389dd8316 /models/issue_comment.go
parent0bcf644da4c3d21fad3ce8f33ccc26f8110568d6 (diff)
downloadgitea-f2d03cda96eb5febbf9801f6b6cf5daa37220bc9.tar.gz
gitea-f2d03cda96eb5febbf9801f6b6cf5daa37220bc9.zip
[API] Extend times API (#9200)
Extensively extend the times API. close #8833; close #8513; close #8559
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index aeaee68003..3ba6790216 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -84,6 +84,8 @@ const (
CommentTypeUnlock
// Change pull request's target branch
CommentTypeChangeTargetBranch
+ // Delete time manual for time tracking
+ CommentTypeDeleteTimeManual
)
// CommentTag defines comment tag type
@@ -100,7 +102,7 @@ const (
// Comment represents a comment in commit and issue page.
type Comment struct {
ID int64 `xorm:"pk autoincr"`
- Type CommentType `xorm:"index"`
+ Type CommentType `xorm:"INDEX"`
PosterID int64 `xorm:"INDEX"`
Poster *User `xorm:"-"`
OriginalAuthor string