mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Attempt to fix the webauthn migration again - part 3 (#18770)
v208.go is seriously broken as it misses an ID() check. We need to no-op and remigrate all of the u2f keys. See #18756 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		| @@ -367,11 +367,13 @@ var migrations = []Migration{ | ||||
| 	// v206 -> v207 | ||||
| 	NewMigration("Add authorize column to team_unit table", addAuthorizeColForTeamUnit), | ||||
| 	// v207 -> v208 | ||||
| 	NewMigration("Add webauthn table and migrate u2f data to webauthn", addWebAuthnCred), | ||||
| 	NewMigration("Add webauthn table and migrate u2f data to webauthn - NO-OPED", addWebAuthnCred), | ||||
| 	// v208 -> v209 | ||||
| 	NewMigration("Use base32.HexEncoding instead of base64 encoding for cred ID as it is case insensitive", useBase32HexForCredIDInWebAuthnCredential), | ||||
| 	NewMigration("Use base32.HexEncoding instead of base64 encoding for cred ID as it is case insensitive - NO-OPED", useBase32HexForCredIDInWebAuthnCredential), | ||||
| 	// v209 -> v210 | ||||
| 	NewMigration("Increase WebAuthentication CredentialID size to 410", increaseCredentialIDTo410), | ||||
| 	NewMigration("Increase WebAuthentication CredentialID size to 410 - NO-OPED", increaseCredentialIDTo410), | ||||
| 	// v210 -> v211 | ||||
| 	NewMigration("v208 was completely broken - remigrate", remigrateU2FCredentials), | ||||
| } | ||||
|  | ||||
| // GetCurrentDBVersion returns the current db version | ||||
|   | ||||
		Reference in New Issue
	
	Block a user