I dumped the schemas on both databases and read through a diff; they’re exactly the same, except one table has one extra column, which isn’t used at all (it’s an artifact from an even older version of Mattermost, the upgrade process didn’t remove it). Still no idea what the actual source of the problems is.