code.gitea.io/gitea@v1.21.7/models/migrations/v1_20/v248.go (about)

     1  // Copyright 2023 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_20 //nolint
     5  
     6  import "xorm.io/xorm"
     7  
     8  func AddVersionToActionRunner(x *xorm.Engine) error {
     9  	type ActionRunner struct {
    10  		Version string `xorm:"VARCHAR(64)"` // the version of act_runner
    11  	}
    12  
    13  	return x.Sync(new(ActionRunner))
    14  }