This was originally reported but not actioned in
Upgrading from 3.6.7 to 3.7.7 fails. We are only only passing through 3.7.7 as part of the upgrade process. How do we work around this issue. We don't use badges, can we just delete the table as part of the upgrade process?