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.

v231.go 352B

123456789101112131415161718
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_19 //nolint
  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. }