Files
devstar-create-from-template/models/migrations/v1_19/v231.go
2025-08-25 15:46:12 +08:00

19 lines
343 B
Go

// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_19
import (
"xorm.io/xorm"
)
func AddIndexForHookTask(x *xorm.Engine) error {
type HookTask struct {
ID int64 `xorm:"pk autoincr"`
HookID int64 `xorm:"index"`
UUID string `xorm:"unique"`
}
return x.Sync(new(HookTask))
}