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.

v295.go 600B

123456789101112131415161718
  1. // Copyright 2024 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_22 //nolint
  4. import "xorm.io/xorm"
  5. func AddCommitStatusSummary(x *xorm.Engine) error {
  6. type CommitStatusSummary struct {
  7. ID int64 `xorm:"pk autoincr"`
  8. RepoID int64 `xorm:"INDEX UNIQUE(repo_id_sha)"`
  9. SHA string `xorm:"VARCHAR(64) NOT NULL INDEX UNIQUE(repo_id_sha)"`
  10. State string `xorm:"VARCHAR(7) NOT NULL"`
  11. }
  12. // there is no migrations because if there is no data on this table, it will fall back to get data
  13. // from commit status
  14. return x.Sync2(new(CommitStatusSummary))
  15. }