forked from forgejo/forgejo
golint fixed for models/migrations (#291)
This commit is contained in:
parent
1d0f811399
commit
27d66855eb
2 changed files with 51 additions and 13 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue