You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v121.go 359B

12345678910111213141516
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_12 //nolint
  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.Sync2(new(User))
  12. }