Skip to main content

Module migrations

Module migrations 

Source

Constantsยง

DATABASE_VERSION ๐Ÿ”’
The current schema version.
SERVER_NAME_KEY ๐Ÿ”’

Functionsยง

backfill_server_name ๐Ÿ”’
Stamp the marker on a database that pre-dates SERVER_NAME_KEY by probing for any user from the configured server. If none, the database belongs to a different server and reuse is refused.
check_server_name ๐Ÿ”’
Matrix resource ownership is based on the server name; changing it requires recreating the database from scratch. The marker is stamped once in fresh(); pre-marker databases are backfilled by probing for any user from the configured server.
fix_bad_double_separator_in_state_cache ๐Ÿ”’
fix_hashed_sentinel_passwords ๐Ÿ”’
fix_readreceiptid_readreceipt_duplicates ๐Ÿ”’
fix_referencedevents_missing_sep ๐Ÿ”’
fresh ๐Ÿ”’
migrate ๐Ÿ”’
Apply any migrations
migrations ๐Ÿ”’
remove_remote_media_userid ๐Ÿ”’
retroactively_fix_bad_data_from_roomuserid_joined ๐Ÿ”’
upgrade_legacy_mediaid_user ๐Ÿ”’