diff --git a/go.mod b/go.mod index 86a90fafe3..d37a78e540 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 8bd92014dc..cf4b4beccc 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -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 } diff --git a/models/migrations/v1_26/v338.go b/models/migrations/v1_26/v338.go new file mode 100644 index 0000000000..b9bc062cd1 --- /dev/null +++ b/models/migrations/v1_26/v338.go @@ -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)) +}