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.

v170.go 379B

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