4.2.0 to 5.0.0
DB migrations
The migrations scripts for Postgres, MySQL, MSSQL can be found in the priv/migrations directory. Please remember to provide the existing server domain for the server column instead of the localhost.
Changes in XEPs:
mod_last- Table
last- added server column, updated primary key and indexes.
- Table
mod_privacy- Table
privacy_default_list- added server column, updated primary key and indexes. - Table
privacy_list- added server column, updated primary key and indexes.
- Table
mod_private- Table
private_storage- added server column, updated primary key and indexes, removed unused columns.
- Table
mod_roster- Table
rosterusers- added server column, updated indexes. - Table
rostergroups- added server column, updated indexes. - Table
roster_version- added server column, updated primary key and indexes.
- Table
mod_muc- Table
i_muc_light_blocking- updated indexes.
- Table
mod_inbox- Table
inbox- updated primary key and indexes.
- Table
Other changes:
- RDBMS auth - modified
userstable. - Added
domain_settingstable. - Added
domain_eventstable.
Hook migrations
filter_room_packethook uses a map instead of a proplist for the event data information.room_send_packethook has been removed. Usefilter_room_packetinstead.filter_room_packetis called for HostType (was for MucHost).forget_roomis called for HostType (was for MucHost).forget_roomtakes an extra argument HostType.filter_room_packettakes an extra argument HostType.is_muc_room_owneris called for HostType (was for MucHost).is_muc_room_ownertakes an extra argument HostType.muc_room_pidhook removed.load_permanent_rooms_at_startupoption is ignored now.gen_mod:get_module_opt_by_subhostAPI removed.update_inbox_for_mucis called for HostType.get_mam_muc_gdpr_datais called for HostType.get_mam_pm_gdpr_datais called for HostType.get_personal_datahandlers take an extra argument:HostTypeas the second parameter.get_mam_pm_gdpr_dataandget_mam_muc_gdpr_datatakeHostTypeargument.
Metrics REST API (obsolete)
The API is still considered obsolete so if you are using it, please consider using WombatOAM or metrics reporters as described in Logging and monitoring.
In each endpoint, host has been changed to host_type.
This is because the metrics are now collected per host type rather than host.
Users cache
MongooseIM used to feature a cache to check whether a user exists, that was unavoidably enabled, and had no eviction policy, that is, the cache could continue growing forever. Now, MIM features a module called mod_cache_users that implements a configurable cache policy, that can be enabled, disabled, and parametrised, per host_type. This might not be enabled by default in your configuration, so we recommend you verify your configuration and enable it if needed.