Skip to content

Commit 6d2a307

Browse files
authored
Rename migration package name for 1.22-rc1 (#30730)
Ref: Propose to restart 1.22 release #30501
1 parent b93c87b commit 6d2a307

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

models/migrations/migrations.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"code.gitea.io/gitea/models/migrations/v1_20"
2222
"code.gitea.io/gitea/models/migrations/v1_21"
2323
"code.gitea.io/gitea/models/migrations/v1_22"
24-
"code.gitea.io/gitea/models/migrations/v1_23"
2524
"code.gitea.io/gitea/models/migrations/v1_6"
2625
"code.gitea.io/gitea/models/migrations/v1_7"
2726
"code.gitea.io/gitea/models/migrations/v1_8"
@@ -574,18 +573,20 @@ var migrations = []Migration{
574573
// v293 -> v294
575574
NewMigration("Ensure every project has exactly one default column", v1_22.CheckProjectColumnsConsistency),
576575

577-
// Gitea 1.22.0 ends at 294
576+
// Gitea 1.22.0-rc0 ends at 294
578577

579578
// v294 -> v295
580-
NewMigration("Add unique index for project issue table", v1_23.AddUniqueIndexForProjectIssue),
579+
NewMigration("Add unique index for project issue table", v1_22.AddUniqueIndexForProjectIssue),
581580
// v295 -> v296
582-
NewMigration("Add commit status summary table", v1_23.AddCommitStatusSummary),
581+
NewMigration("Add commit status summary table", v1_22.AddCommitStatusSummary),
583582
// v296 -> v297
584-
NewMigration("Add missing field of commit status summary table", v1_23.AddCommitStatusSummary2),
583+
NewMigration("Add missing field of commit status summary table", v1_22.AddCommitStatusSummary2),
585584
// v297 -> v298
586-
NewMigration("Add everyone_access_mode for repo_unit", v1_23.AddRepoUnitEveryoneAccessMode),
585+
NewMigration("Add everyone_access_mode for repo_unit", v1_22.AddRepoUnitEveryoneAccessMode),
587586
// v298 -> v299
588-
NewMigration("Drop wrongly created table o_auth2_application", v1_23.DropWronglyCreatedTable),
587+
NewMigration("Drop wrongly created table o_auth2_application", v1_22.DropWronglyCreatedTable),
588+
589+
// Gitea 1.22.0-rc1 ends at 299
589590
}
590591

591592
// GetCurrentDBVersion returns the current db version

models/migrations/v1_23/v294.go renamed to models/migrations/v1_22/v294.go

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

4-
package v1_23 //nolint
4+
package v1_22 //nolint
55

66
import (
77
"fmt"

models/migrations/v1_23/v294_test.go renamed to models/migrations/v1_22/v294_test.go

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

4-
package v1_23 //nolint
4+
package v1_22 //nolint
55

66
import (
77
"slices"

models/migrations/v1_23/v295.go renamed to models/migrations/v1_22/v295.go

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

4-
package v1_23 //nolint
4+
package v1_22 //nolint
55

66
import "xorm.io/xorm"
77

models/migrations/v1_23/v296.go renamed to models/migrations/v1_22/v296.go

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

4-
package v1_23 //nolint
4+
package v1_22 //nolint
55

66
import "xorm.io/xorm"
77

models/migrations/v1_23/v297.go renamed to models/migrations/v1_22/v297.go

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

4-
package v1_23 //nolint
4+
package v1_22 //nolint
55

66
import (
77
"code.gitea.io/gitea/models/perm"

models/migrations/v1_23/v298.go renamed to models/migrations/v1_22/v298.go

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

4-
package v1_23 //nolint
4+
package v1_22 //nolint
55

66
import "xorm.io/xorm"
77

0 commit comments

Comments
 (0)