Skip to content

Commit

Permalink
Fix some bug on migrations (#30647)
Browse files Browse the repository at this point in the history
Fix go-gitea/gitea#23894 (comment)

(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
  • Loading branch information
lunny authored and earl-warren committed Apr 28, 2024
1 parent 2079d61 commit 931ca18
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions models/migrations/v1_16/v210.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 931ca18

Please sign in to comment.