Files
new-api/models/migrations/v1_26/v328.go
T
2026-05-30 22:47:36 +08:00

19 lines
408 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_26
import (
"gitea.dev/models/db"
"xorm.io/xorm"
)
func AddTokenPermissionsToActionRunJob(x db.EngineMigration) error {
type ActionRunJob struct {
TokenPermissions string `xorm:"JSON TEXT"`
}
_, err := x.SyncWithOptions(xorm.SyncOptions{IgnoreDropIndices: true}, new(ActionRunJob))
return err
}