Migration from Owncloud 9.1.6 to Nextcloud 10.0.6 fails

The only way to properly resolve this is to also update the version number in config/config.php from 9.1.6.2 to 9.1.6.0 right before the update script is triggered. Sadly fixing this on our side is a bit harder and this is the workaround.