1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-26 20:28:40 +00:00

chore: migrations v236

This commit is contained in:
Jason Song
2022-12-12 13:12:00 +08:00
parent dbdfd2647c
commit 4da0a65511
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), NewMigration("Add package cleanup rule table", v1_19.CreatePackageCleanupRuleTable),
// v235 -> v236 // v235 -> v236
NewMigration("Add index for access_token", v1_19.AddIndexForAccessToken), NewMigration("Add index for access_token", v1_19.AddIndexForAccessToken),
// v236 -> v237
// in dev NewMigration("Add actions tables", v1_19.AddActionsTables),
NewMigration("Add actions tables", addActionsTables),
} }
// GetCurrentDBVersion returns the current db version // GetCurrentDBVersion returns the current db version

View File

@@ -1,7 +1,7 @@
// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package migrations package v1_19 //nolint
import ( import (
"code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/db"
@@ -10,7 +10,7 @@ import (
"xorm.io/xorm" "xorm.io/xorm"
) )
func addActionsTables(x *xorm.Engine) error { func AddActionsTables(x *xorm.Engine) error {
type ActionRunner struct { type ActionRunner struct {
ID int64 ID int64
UUID string `xorm:"CHAR(36) UNIQUE"` UUID string `xorm:"CHAR(36) UNIQUE"`