gitea源码

1234567891011121314151617181920
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_21
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AlterActionArtifactTable(x *xorm.Engine) error {
  8. // ActionArtifact is a file that is stored in the artifact storage.
  9. type ActionArtifact struct {
  10. RunID int64 `xorm:"index unique(runid_name_path)"` // The run id of the artifact
  11. ArtifactPath string `xorm:"index unique(runid_name_path)"` // The path to the artifact when runner uploads it
  12. ArtifactName string `xorm:"index unique(runid_name_path)"` // The name of the artifact when
  13. }
  14. return x.Sync(new(ActionArtifact))
  15. }