2
0

fix(ci): add missing deleted_unix column to action_runner table
All checks were successful
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 3m19s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 5m22s
Build and Release / Lint (push) Successful in 5m29s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m59s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 4m40s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 8h4m30s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 4m51s
Build and Release / Build Binary (linux/arm64) (push) Successful in 6m49s

Adds migration v338 to ensure the deleted_unix column exists on action_runner table for soft-delete functionality. This column may be missing in some databases if the original migration ran before it was added. Also updates gitcaddy-vault dependency to v1.0.52.
This commit is contained in:
2026-01-26 00:59:15 -05:00
parent eea8ad71aa
commit 931bcfd7ee
3 changed files with 21 additions and 1 deletions

2
go.mod
View File

@@ -16,7 +16,7 @@ require (
connectrpc.com/connect v1.18.1
// GitCaddy Vault plugin (compiled-in)
git.marketally.com/gitcaddy/gitcaddy-vault v1.0.51
git.marketally.com/gitcaddy/gitcaddy-vault v1.0.52
gitea.com/go-chi/binding v0.0.0-20240430071103-39a851e106ed
gitea.com/go-chi/cache v0.2.1
gitea.com/go-chi/captcha v0.0.0-20240315150714-fb487f629098

View File

@@ -412,6 +412,7 @@ func prepareMigrationTasks() []*migration {
newMigration(335, "Add is_global to package for global package access", v1_26.AddIsGlobalToPackage),
newMigration(336, "Add external user fields to issue for app integration", v1_26.AddExternalUserFieldsToIssue),
newMigration(337, "Add is_private to package for package visibility", v1_26.AddIsPrivateToPackage),
newMigration(338, "Add deleted_unix to action_runner table", v1_26.AddDeletedUnixToActionRunner),
}
return preparedMigrations
}

View File

@@ -0,0 +1,19 @@
// Copyright 2026 MarketAlly. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_26
import (
"xorm.io/xorm"
)
// AddDeletedUnixToActionRunner ensures the deleted_unix column exists on the action_runner table.
// The column is used for soft-delete (xorm "deleted" tag) and is referenced by runner health queries.
// Some databases may be missing this column if the original migration ran before it was added.
func AddDeletedUnixToActionRunner(x *xorm.Engine) error {
type ActionRunner struct {
Deleted int64 `xorm:"deleted"`
}
return x.Sync(new(ActionRunner))
}