Rename possibly misnamed {image_effect} table to {image_effects}.

Related topics

File

modules/image/image.install, line 271
Install, update and uninstall functions for the image module.

Code

function image_update_7001() {

  // Due to a bug in earlier versions of image_update_7000() it is possible
  // to end up with an {image_effect} table where there should be an
  // {image_effects} table.
  if (!db_table_exists('image_effects') && db_table_exists('image_effect')) {
    db_rename_table('image_effect', 'image_effects');
  }
}