aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_9/v86.go
blob: a2a2c042c0bac0da7ba8a3b601ac9945ef6c8672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_9 //nolint

import (
	"xorm.io/xorm"
)

func AddHTTPMethodToWebhook(x *xorm.Engine) error {
	type Webhook struct {
		HTTPMethod string `xorm:"http_method DEFAULT 'POST'"`
	}

	return x.Sync2(new(Webhook))
}