No loss of data from upgrades has been reported in years. Every release includes database schema and database data migrations.
Only incompatibility issues were with some of the config file entries. These need to updated as explained in the release notes -> https://docs.mayan-edms.com/releases/3.2.html#backward-incom...