gitea源码

v93.go 358B

12345678910111213141516
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_10
  4. import "xorm.io/xorm"
  5. func AddEmailNotificationEnabledToUser(x *xorm.Engine) error {
  6. // User see models/user.go
  7. type User struct {
  8. EmailNotificationsPreference string `xorm:"VARCHAR(20) NOT NULL DEFAULT 'enabled'"`
  9. }
  10. return x.Sync(new(User))
  11. }