Index: imagecache.install
===================================================================
--- imagecache.install	(revision 9122)
+++ imagecache.install	(working copy)
@@ -228,4 +228,25 @@
   return $ret;
 }
 
+/**
+ * Upgrade from Drupal 5 => Drupal 6.
+ * Add the module field to imagecache_action
+ */
+function imagecache_update_6000() {
+  $ret = array();
 
+  // add action column to the imagecache_action table just becuase serialization bugs me.
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql("ALTER TABLE {imagecache_action} ADD COLUMN module varchar(255) not null default '' after weight");
+      $ret[] = update_sql("UPDATE {imagecache_action} set module = 'imagecache'");
+      break;
+      
+    case 'pgsql':
+      // @todo: pgsql updates.
+      break;
+  }
+  
+  return $ret;
+}
\ No newline at end of file
