-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Expand file tree
/
Copy pathv326.go
More file actions
29 lines (24 loc) · 854 Bytes
/
v326.go
File metadata and controls
29 lines (24 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_26
import (
"xorm.io/xorm"
)
func AddMatrixEvaluationColumnsToActionRunJob(x *xorm.Engine) error {
if _, err := x.SyncWithOptions(xorm.SyncOptions{
IgnoreDropIndices: true,
}, new(ActionRunJobWithMatrixSupport)); err != nil {
return err
}
return nil
}
// ActionRunJobWithMatrixSupport is a temporary struct for migration purposes
// It only defines the new columns we need to add
type ActionRunJobWithMatrixSupport struct {
RawStrategy string `xorm:"TEXT"` // raw strategy from job YAML's "strategy" section
IsMatrixEvaluated bool // whether the matrix has been evaluated with job outputs
}
// TableName returns the table name for xorm to sync
func (ActionRunJobWithMatrixSupport) TableName() string {
return "action_run_job"
}