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.

v297.go 391B

1234567891011121314151617
  1. // Copyright 2024 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_23 //nolint
  4. import (
  5. "code.gitea.io/gitea/models/perm"
  6. "xorm.io/xorm"
  7. )
  8. func AddRepoUnitEveryoneAccessMode(x *xorm.Engine) error {
  9. type RepoUnit struct { //revive:disable-line:exported
  10. EveryoneAccessMode perm.AccessMode `xorm:"NOT NULL DEFAULT 0"`
  11. }
  12. return x.Sync(&RepoUnit{})
  13. }