mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Updated and created were appended with _unix. Fresh databases have only the newly named fields.
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user