? .imagecache.install.swp
? patch_53.patch
Index: imagecache.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.install,v
retrieving revision 1.21
diff -u -p -r1.21 imagecache.install
--- imagecache.install	4 Nov 2008 20:55:32 -0000	1.21
+++ imagecache.install	21 Dec 2008 23:30:42 -0000
@@ -238,3 +238,32 @@ function imagecache_update_5() {
 
   return array();
 }
+
+/**
+ * Undo the work done in imagecache_update_3() and switch the id fields back to
+ * auto increment.
+ */
+function imagecache_update_6000() {
+  $ret = array();
+
+  db_drop_primary_key($ret, 'imagecache_preset');
+  $presetid = array(
+    'description' => t('The primary identifier for an imagecache_preset.'),
+    'type' => 'serial',
+    'unsigned' => TRUE,
+    'not null' => TRUE,
+  );
+  db_change_field($ret, 'imagecache_preset', 'presetid', 'presetid', $presetid, array('primary key' => 'presetid'));
+
+  db_drop_primary_key($ret, 'imagecache_action');
+  $actionid = array(
+    'description' => t('The primary identifier for an imagecache_action.'),
+    'type' => 'serial',
+    'unsigned' => TRUE,
+    'not null' => TRUE,
+  );
+  db_change_field($ret, 'imagecache_action', 'actionid', 'actionid', $actionid, array('primary key' => 'actionid'));
+
+  return $ret;
+}
+
