File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import "github.com/go-xorm/xorm"
9
9
func addEmailNotificationEnabledToUser (x * xorm.Engine ) error {
10
10
// Issue see models/user.go
11
11
type User struct {
12
- EmailNotificationsPreference string `xorm:"DEFAULT 'enabled'"`
12
+ EmailNotificationsPreference string `xorm:"NOT NULL DEFAULT 'enabled'"`
13
13
}
14
14
15
15
return x .Sync2 (new (User ))
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ type User struct {
96
96
// Email is the primary email address (to be used for communication)
97
97
Email string `xorm:"NOT NULL"`
98
98
KeepEmailPrivate bool
99
- EmailNotificationsPreference string `xorm:"DEFAULT 'enabled'"`
99
+ EmailNotificationsPreference string `xorm:"NOT NULL DEFAULT 'enabled'"`
100
100
Passwd string `xorm:"NOT NULL"`
101
101
PasswdHashAlgo string `xorm:"NOT NULL DEFAULT 'pbkdf2'"`
102
102
You can’t perform that action at this time.
0 commit comments