How to upgrade to Mautic 3.1?

This is an old issue and there is already an open 3d for it: