Skip to content

Commit 90bb647

Browse files
committed
fix migration
1 parent c1869cf commit 90bb647

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

models/migrations/migrations.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"code.gitea.io/gitea/models/migrations/v1_22"
2525
"code.gitea.io/gitea/models/migrations/v1_23"
2626
"code.gitea.io/gitea/models/migrations/v1_24"
27+
"code.gitea.io/gitea/models/migrations/v1_25"
2728
"code.gitea.io/gitea/models/migrations/v1_6"
2829
"code.gitea.io/gitea/models/migrations/v1_7"
2930
"code.gitea.io/gitea/models/migrations/v1_8"
@@ -382,7 +383,10 @@ func prepareMigrationTasks() []*migration {
382383
newMigration(318, "Add anonymous_access_mode for repo_unit", v1_24.AddRepoUnitAnonymousAccessMode),
383384
newMigration(319, "Add ExclusiveOrder to Label table", v1_24.AddExclusiveOrderColumnToLabelTable),
384385
newMigration(320, "Migrate two_factor_policy to login_source table", v1_24.MigrateSkipTwoFactor),
385-
newMigration(321, "Add support for actions concurrency", v1_24.AddActionsConcurrency),
386+
387+
// Gitea 1.24.0-rc0 ends at migration ID number 320 (database version 321)
388+
389+
newMigration(321, "Add support for actions concurrency", v1_25.AddActionsConcurrency),
386390
}
387391
return preparedMigrations
388392
}

models/migrations/v1_24/v321.go renamed to models/migrations/v1_25/v321.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2025 The Gitea Authors. All rights reserved.
22
// SPDX-License-Identifier: MIT
33

4-
package v1_24 //nolint
4+
package v1_25 //nolint
55

66
import (
77
"xorm.io/xorm"

0 commit comments

Comments
 (0)