first-commit
This commit is contained in:
15
models/migrations/v1_10/v93.go
Normal file
15
models/migrations/v1_10/v93.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_10
|
||||
|
||||
import "xorm.io/xorm"
|
||||
|
||||
func AddEmailNotificationEnabledToUser(x *xorm.Engine) error {
|
||||
// User see models/user.go
|
||||
type User struct {
|
||||
EmailNotificationsPreference string `xorm:"VARCHAR(20) NOT NULL DEFAULT 'enabled'"`
|
||||
}
|
||||
|
||||
return x.Sync(new(User))
|
||||
}
|
Reference in New Issue
Block a user