diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2016-03-11 12:43:35 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2016-03-11 12:43:35 +0100 |
commit | 1314ba219ef8a655872df743434bffe959d3028f (patch) | |
tree | 9ee81ef7fb5901aefb5c28d8ae09e55bbf9121b5 /models/release.go | |
parent | 5267dce21023802818b0c0c16ba2ca47c146e1b5 (diff) | |
download | gitea-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/release.go')
-rw-r--r-- | models/release.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/release.go b/models/release.go index b52b63941a..2379bdc628 100644 --- a/models/release.go +++ b/models/release.go @@ -131,7 +131,7 @@ func GetReleaseByID(id int64) (*Release, error) { // GetReleasesByRepoID returns a list of releases of repository. func GetReleasesByRepoID(repoID int64) (rels []*Release, err error) { - err = x.Desc("created").Find(&rels, Release{RepoID: repoID}) + err = x.Desc("created_unix").Find(&rels, Release{RepoID: repoID}) return rels, err } |