gitea源码

v231.go 343B

12345678910111213141516171819
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_19
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddIndexForHookTask(x *xorm.Engine) error {
  8. type HookTask struct {
  9. ID int64 `xorm:"pk autoincr"`
  10. HookID int64 `xorm:"index"`
  11. UUID string `xorm:"unique"`
  12. }
  13. return x.Sync(new(HookTask))
  14. }