Fix schema errors run into during migration.