From 5e43aa225191a0149301637ea27254c503eeec3f Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Fri, 25 Jul 2025 16:35:19 +0200 Subject: [PATCH] fix migration to use same index as model --- models/migrations/v1_25/v322.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/migrations/v1_25/v322.go b/models/migrations/v1_25/v322.go index ca8d6af3aa9..85cf32926fa 100644 --- a/models/migrations/v1_25/v322.go +++ b/models/migrations/v1_25/v322.go @@ -9,7 +9,7 @@ import ( func AddActionsConcurrency(x *xorm.Engine) error { type ActionRun struct { - RepoID int64 `xorm:"index index(repo_concurrency)"` + RepoID int64 `xorm:"index unique(repo_index) index(repo_concurrency)"` ConcurrencyGroup string `xorm:"index(repo_concurrency)"` ConcurrencyCancel bool }