mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-11 18:14:15 +01:00
20 lines
420 B
Go
20 lines
420 B
Go
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package migrations
|
||
|
|
||
|
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))
|
||
|
}
|