mirror of
https://github.com/go-gitea/gitea
synced 2025-07-25 19:58:36 +00:00
chore: migrations v236
This commit is contained in:
@@ -442,9 +442,8 @@ var migrations = []Migration{
|
||||
NewMigration("Add package cleanup rule table", v1_19.CreatePackageCleanupRuleTable),
|
||||
// v235 -> v236
|
||||
NewMigration("Add index for access_token", v1_19.AddIndexForAccessToken),
|
||||
|
||||
// in dev
|
||||
NewMigration("Add actions tables", addActionsTables),
|
||||
// v236 -> v237
|
||||
NewMigration("Add actions tables", v1_19.AddActionsTables),
|
||||
}
|
||||
|
||||
// GetCurrentDBVersion returns the current db version
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package migrations
|
||||
package v1_19 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/models/db"
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
||||
func addActionsTables(x *xorm.Engine) error {
|
||||
func AddActionsTables(x *xorm.Engine) error {
|
||||
type ActionRunner struct {
|
||||
ID int64
|
||||
UUID string `xorm:"CHAR(36) UNIQUE"`
|
Reference in New Issue
Block a user