summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_22/v290.go
blob: e9b7f504bad7f7cc949ff5652cba83342b052671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2024 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_22 //nolint

import (
	"xorm.io/xorm"
)

type HookTask struct {
	PayloadVersion int `xorm:"DEFAULT 1"`
}

func AddPayloadVersionToHookTaskTable(x *xorm.Engine) error {
	// create missing column
	return x.Sync(new(HookTask))
}