mirror of
https://github.com/gogs/gogs.git
synced 2026-02-28 01:00:57 +01:00
Fix lint and MySQL test failures: remove unused function and fix UUID column type
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
// Attachment represent a attachment of issue/comment/release.
|
||||
type Attachment struct {
|
||||
ID int64
|
||||
UUID string `gorm:"column:uuid;uniqueIndex"`
|
||||
UUID string `gorm:"column:uuid;type:varchar(191);uniqueIndex"`
|
||||
IssueID int64 `gorm:"index"`
|
||||
CommentID int64
|
||||
ReleaseID int64 `gorm:"index"`
|
||||
|
||||
@@ -1201,16 +1201,6 @@ const (
|
||||
FilterModeMention FilterMode = "mentioned"
|
||||
)
|
||||
|
||||
func parseCountResult(results []map[string][]byte) int64 {
|
||||
if len(results) == 0 {
|
||||
return 0
|
||||
}
|
||||
for _, result := range results[0] {
|
||||
return com.StrTo(string(result)).MustInt64()
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type IssueStatsOptions struct {
|
||||
RepoID int64
|
||||
UserID int64
|
||||
|
||||
Reference in New Issue
Block a user