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

Linking to Github issue: