1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

golint fixed for models/migrations (#291)

This commit is contained in:
Lunny Xiao
2016-11-28 23:44:17 +08:00
committed by GitHub
parent 1d0f811399
commit 27d66855eb
2 changed files with 51 additions and 13 deletions

View File

@@ -23,10 +23,12 @@ func setCommentUpdatedWithCreated(x *xorm.Engine) (err error) {
return nil
}
// UserV14 describes the added fields for migrating from v13 -> v14
type UserV14 struct {
DiffViewStyle string `xorm:"NOT NULL DEFAULT ''"`
}
// TableName will be invoked by XORM to customrize the table name
func (*UserV14) TableName() string {
return "user"
}