You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v131.go 387B

123456789101112131415161718192021
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_12 //nolint
  4. import (
  5. "fmt"
  6. "xorm.io/xorm"
  7. )
  8. func AddSystemWebhookColumn(x *xorm.Engine) error {
  9. type Webhook struct {
  10. IsSystemWebhook bool `xorm:"NOT NULL DEFAULT false"`
  11. }
  12. if err := x.Sync2(new(Webhook)); err != nil {
  13. return fmt.Errorf("Sync2: %w", err)
  14. }
  15. return nil
  16. }