Skip to content

Commit 9e9d1b8

Browse files
adelowotechknowlogick
authored andcommitted
Fix migration for user defined themes (#5682)
1 parent 2b36bdd commit 9e9d1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/migrations/v77.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
func addUserDefaultTheme(x *xorm.Engine) error {
1212
type User struct {
13-
Theme string `xorm:"VARCHAR(30)"`
13+
Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
1414
}
1515

1616
return x.Sync2(new(User))

0 commit comments

Comments
 (0)