1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-18 00:49:09 -04:00

chore: migrations v236

This commit is contained in:
Jason Song 2022-12-12 13:12:00 +08:00
parent dbdfd2647c
commit 4da0a65511
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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"`