Index: image.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.install,v
retrieving revision 1.30
diff -u -p -r1.30 image.install
--- image.install	5 Sep 2009 10:19:07 -0000	1.30
+++ image.install	5 Sep 2009 12:54:10 -0000
@@ -234,6 +234,12 @@ function image_update_5() {
  */
 function image_update_5200() {
   $ret = array();
+  
+  // Versions prior to 5 had an {image} table which is no longer used on 5.1
+  // but not removed.
+  if (db_table_exists('image')) {
+    db_rename_table($ret, 'image', 'image_old');    
+  }  
 
   switch ($GLOBALS['db_type']) {
     case 'mysql':
