Fix migration for user defined themes (#5682)

This commit is contained in:
Lanre Adelowo 2019-01-12 20:43:47 +01:00 committed by techknowlogick
parent 2b36bdd490
commit 9e9d1b8f95
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
func addUserDefaultTheme(x *xorm.Engine) error {
type User struct {
Theme string `xorm:"VARCHAR(30)"`
Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
}
return x.Sync2(new(User))