Skip to main content

migrate_profile_keys

Function migrate_profile_keys 

Source
pub(super) async fn migrate_profile_keys(services: &Services) -> Result
Expand description

Relocates the per-user displayname and avatar_url out of their dedicated columns into the unified useridprofilekey_value store keyed by MSC4133 field name, where the profile service now reads them.

The dedicated columns are left intact, so an older binary opening the same database still resolves. The relocation has no check, as those columns go stale, but the values already in the store are then repaired from theirs.