1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-10 04:27:22 +00:00

Updated and created were appended with _unix. Fresh databases have only the newly named fields.

This commit is contained in:
Marin Jankovski
2016-03-11 12:43:35 +01:00
parent 5267dce210
commit 1314ba219e
6 changed files with 11 additions and 10 deletions

View File

@ -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.