gitea源码

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