mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-23 05:42:33 +09:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
22 lines
399 B
Go
22 lines
399 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_12
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"code.gitea.io/gitea/models/db"
|
|
)
|
|
|
|
func AddSystemWebhookColumn(x db.EngineMigration) error {
|
|
type Webhook struct {
|
|
IsSystemWebhook bool `xorm:"NOT NULL DEFAULT false"`
|
|
}
|
|
|
|
if err := x.Sync(new(Webhook)); err != nil {
|
|
return fmt.Errorf("Sync: %w", err)
|
|
}
|
|
return nil
|
|
}
|