Files

19 lines
343 B
Go
Raw Permalink Normal View History

2022-10-28 19:05:39 +08:00
// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2022-10-28 19:05:39 +08:00
2025-06-27 07:59:55 +02:00
package v1_19
2022-10-28 19:05:39 +08:00
import (
"xorm.io/xorm"
)
2022-11-02 16:54:36 +08:00
func AddIndexForHookTask(x *xorm.Engine) error {
2022-10-28 19:05:39 +08:00
type HookTask struct {
ID int64 `xorm:"pk autoincr"`
HookID int64 `xorm:"index"`
UUID string `xorm:"unique"`
}
return x.Sync(new(HookTask))
}