Column not found: 1054 Unknown column '-' in 'generated column function' when upgrading from 3.0.2 to 3.1

Sorry for this late reaction on this topic, but I just wanted to install Mautic 3.1.2 and got the same error.
What can I do to fix this?