summaryrefslogtreecommitdiffstats
path: root/models/migrations/v14.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-28 23:44:17 +0800
committerGitHub <noreply@github.com>2016-11-28 23:44:17 +0800
commit27d66855eb642b22852b557cbb8ffd7781d73d4e (patch)
tree0fcf96e6eebf864f7798f99bfe0dd3d968b8f647 /models/migrations/v14.go
parent1d0f811399439ae3952d2f80c11a6cb478655d35 (diff)
downloadgitea-27d66855eb642b22852b557cbb8ffd7781d73d4e.tar.gz
gitea-27d66855eb642b22852b557cbb8ffd7781d73d4e.zip
golint fixed for models/migrations (#291)
Diffstat (limited to 'models/migrations/v14.go')
-rw-r--r--models/migrations/v14.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/v14.go b/models/migrations/v14.go
index 0cdcf1005f..12ae6290b1 100644
--- a/models/migrations/v14.go
+++ b/models/migrations/v14.go
@@ -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"
}