gitea源码

1234567891011121314151617
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_12
  4. import "xorm.io/xorm"
  5. func AddIsRestricted(x *xorm.Engine) error {
  6. // User see models/user.go
  7. type User struct {
  8. ID int64 `xorm:"pk autoincr"`
  9. IsRestricted bool `xorm:"NOT NULL DEFAULT false"`
  10. }
  11. return x.Sync(new(User))
  12. }