summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2016-03-11 12:43:35 +0100
committerMarin Jankovski <maxlazio@gmail.com>2016-03-11 12:43:35 +0100
commit1314ba219ef8a655872df743434bffe959d3028f (patch)
tree9ee81ef7fb5901aefb5c28d8ae09e55bbf9121b5 /models/issue_comment.go
parent5267dce21023802818b0c0c16ba2ca47c146e1b5 (diff)
downloadgitea-1314ba219ef8a655872df743434bffe959d3028f.tar.gz
gitea-1314ba219ef8a655872df743434bffe959d3028f.zip
Updated and created were appended with _unix. Fresh databases have only the newly named fields.
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index f0cc6188a0..7c96a7d34e 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -310,7 +310,7 @@ func GetCommentByID(id int64) (*Comment, error) {
// GetCommentsByIssueID returns all comments of issue by given ID.
func GetCommentsByIssueID(issueID int64) ([]*Comment, error) {
comments := make([]*Comment, 0, 10)
- return comments, x.Where("issue_id=?", issueID).Asc("created").Find(&comments)
+ return comments, x.Where("issue_id=?", issueID).Asc("created_unix").Find(&comments)
}
// UpdateComment updates information of comment.