mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-05 04:14:01 +00:00
# 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
(cherry picked from commit 57e8033b6e)
3 lines
171 B
SQL
3 lines
171 B
SQL
ALTER INDEX IF EXISTS projections.user_metadata5_metadata_key_idx
|
|
RENAME TO user_metadata5_key_idx;
|
|
DROP INDEX IF EXISTS projections.user_metadata5_metadata_value_idx; |