mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 12:57:39 +00:00
sql: Add indices by key and key+value for user metas projection
This commit is contained in:
@@ -49,6 +49,9 @@ func (*userMetadataProjection) Init() *old_handler.Check {
|
|||||||
},
|
},
|
||||||
handler.NewPrimaryKey(UserMetadataColumnInstanceID, UserMetadataColumnUserID, UserMetadataColumnKey),
|
handler.NewPrimaryKey(UserMetadataColumnInstanceID, UserMetadataColumnUserID, UserMetadataColumnKey),
|
||||||
handler.WithIndex(handler.NewIndex("resource_owner", []string{UserGrantResourceOwner})),
|
handler.WithIndex(handler.NewIndex("resource_owner", []string{UserGrantResourceOwner})),
|
||||||
|
handler.WithIndex(handler.NewIndex("metadata_key", []string{UserMetadataColumnKey})),
|
||||||
|
handler.WithIndex(handler.NewIndex("metadata_value", []string{UserMetadataColumnValue})),
|
||||||
|
handler.WithIndex(handler.NewIndex("metadata_key_and_value", []string{UserMetadataColumnKey, UserMetadataColumnValue})),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user