Stumbled into an old problem on 7.50. Poking around, I see that while core module image’s image_update_7005 was run, 7002 and 7004 weren’t. Both add columns to the two field_*_field_image tables. 7002 also calculates and inserts the correct values for its columns for existing images.
I could fix this all by hand but next time it may be more intricate. What’s the recommended approach to safely making sure that all skipped or failed updates are correctly applied when a core module is involved?
(I saw a suggestion in https://www.drupal.org/node/1348410#comment-5273968 of
UPDATE `system` SET `schema_version` = '7001' WHERE `system`.`filename` = 'modules/image/image.module';
but that’s not clean any more. 7005 doesn’t quietly do nothing if its changes are already in place.)