summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_22/v285.go
blob: c0dacd40bcdd4646f7e573f8dc8af63bdd24ea1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_22 //nolint

import (
	"time"

	"xorm.io/xorm"
)

func AddPreviousDurationToActionRun(x *xorm.Engine) error {
	type ActionRun struct {
		PreviousDuration time.Duration
	}

	return x.Sync(&ActionRun{})
}