From 5ef3cf4f47f93868c06eb20bcb10fd7d6a694441 Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Thu, 18 Jul 2024 17:06:47 +0200 Subject: [PATCH] make fmt --- models/migrations/migrations.go | 1 - models/migrations/v1_23/v301.go | 14 ++++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 8aab63c0e9..4caf60e0ed 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -585,7 +585,6 @@ func EnsureUpToDate(x *xorm.Engine) error { return nil } - // Migrate database to current version func Migrate(x *xorm.Engine) error { // Set a new clean the default mapper to GonicMapper as that is the default for Gitea. diff --git a/models/migrations/v1_23/v301.go b/models/migrations/v1_23/v301.go index 67a942f582..0a53e610d3 100644 --- a/models/migrations/v1_23/v301.go +++ b/models/migrations/v1_23/v301.go @@ -8,14 +8,16 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" - "src.techknowlogick.com/xormigrate" + "src.techknowlogick.com/xormigrate" "xorm.io/xorm" ) -const minDBVersion = 70 // Gitea 1.5.3 -const oldMigrationsCount = 230 -const expectedVersion = minDBVersion+oldMigrationsCount +const ( + minDBVersion = 70 // Gitea 1.5.3 + oldMigrationsCount = 230 + expectedVersion = minDBVersion + oldMigrationsCount +) var oldMigrationNames = []string{ "add issue_dependencies", @@ -101,8 +103,8 @@ var oldMigrationNames = []string{ "add primary key to repo_topic", "set default password algorithm to Argon2", "add TrustModel field to Repository", -"add Team review request support", -"add timestamps to Star, Label, Follow, Watch and Collaboration", + "add Team review request support", + "add timestamps to Star, Label, Follow, Watch and Collaboration", "add changed_protected_files column for pull_request table", "fix publisher ID for tag releases", "ensure repo topics are up-to-date",