aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v14.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v14.go')
-rw-r--r--models/migrations/v14.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/models/migrations/v14.go b/models/migrations/v14.go
index 79c31133f4..0cdcf1005f 100644
--- a/models/migrations/v14.go
+++ b/models/migrations/v14.go
@@ -22,3 +22,15 @@ func setCommentUpdatedWithCreated(x *xorm.Engine) (err error) {
}
return nil
}
+
+type UserV14 struct {
+ DiffViewStyle string `xorm:"NOT NULL DEFAULT ''"`
+}
+
+func (*UserV14) TableName() string {
+ return "user"
+}
+
+func createUserColumnDiffViewStyle(x *xorm.Engine) error {
+ return x.Sync2(new(UserV14))
+}