code.gitea.io/gitea@v1.22.3/models/migrations/v1_22/v285.go (about)

     1  // Copyright 2023 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_22 //nolint
     5  
     6  import (
     7  	"time"
     8  
     9  	"xorm.io/xorm"
    10  )
    11  
    12  func AddPreviousDurationToActionRun(x *xorm.Engine) error {
    13  	type ActionRun struct {
    14  		PreviousDuration time.Duration
    15  	}
    16  
    17  	return x.Sync(&ActionRun{})
    18  }