Turns out it was my fault. I had to split the DB script into smaller scripts per table and only imported the key tables without wp_users and wp_usermeta. I then missed the fact that the larger script contains lots of “ALTER TABLE” statements that I had missed to import.