Remember diff view style (#163)

This commit is contained in:
Andrey Nering 2016-11-13 00:54:04 -02:00 committed by Lunny Xiao
parent bd76e156bb
commit 739f07c98e
7 changed files with 47 additions and 7 deletions

View file

@ -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))
}