From 931ca1834039fab8d578d4d90281dfaa277fdcf2 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 24 Apr 2024 09:58:24 +0800 Subject: [PATCH] Fix some bug on migrations (#30647) Fix https://github.com/go-gitea/gitea/pull/23894#discussion_r1573718690 (cherry picked from commit 2ad9ef4984f0b68ef38241fd6b557d8427d851d8) Conflicts: models/migrations/v1_16/v210.go models/migrations/v1_22/v286.go trivial conflicts because MSSQL is no longer supported --- models/migrations/v1_16/v210.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/models/migrations/v1_16/v210.go b/models/migrations/v1_16/v210.go index f9d1eb5c84..db45b11aed 100644 --- a/models/migrations/v1_16/v210.go +++ b/models/migrations/v1_16/v210.go @@ -68,11 +68,6 @@ func RemigrateU2FCredentials(x *xorm.Engine) error { if err != nil { return err } - case schemas.ORACLE: - _, err := x.Exec("ALTER TABLE webauthn_credential MODIFY credential_id VARCHAR(410)") - if err != nil { - return err - } case schemas.POSTGRES: _, err := x.Exec("ALTER TABLE webauthn_credential ALTER COLUMN credential_id TYPE VARCHAR(410)") if err != nil {