fix: use hash to compare user metadata value (#10749)

# Which Problems Are Solved

Depending on the metadata values (already existing), the newly created
index (#10415) cannot be created or error in the future.

# How the Problems Are Solved

- Create the index using `sha256` and change the query to use sha256 as
well when comparing bytes values such as user_metadata.
- Added a setup step to cleanup potentially created index on
`projections.user_metadata5`

# Additional Changes

None

# Additional Context

- relates to #10415 
- requires backport to v4.x
This commit is contained in:
Livio Spring
2025-09-18 09:50:56 +00:00
committed by GitHub
parent 22ef817d5c
commit 57e8033b6e
7 changed files with 40 additions and 8 deletions
+1
View File
@@ -161,6 +161,7 @@ type Steps struct {
s62HTTPProviderAddSigningKey *HTTPProviderAddSigningKey
s63AlterResourceCounts *AlterResourceCounts
s64ChangePushPosition *ChangePushPosition
s65FixUserMetadata5Index *FixUserMetadata5Index
}
func MustNewSteps(v *viper.Viper) *Steps {