Index: epublish.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/epublish/epublish.install,v
retrieving revision 1.3.2.3
diff -u -r1.3.2.3 epublish.install
--- epublish.install	10 Jun 2008 08:04:18 -0000	1.3.2.3
+++ epublish.install	6 Aug 2009 22:53:35 -0000
@@ -117,4 +117,19 @@
   return _system_update_utf8(array('epublish_abstract', 'epublish_edition', 'epublish_edition_node', 'epublish_publication','epublish_section', 'epublish_topic', 'epublish_volume'));
 }
 
-?>
\ No newline at end of file
+function epublish_update_6001() {
+  $ret = array();
+  db_drop_primary_key($ret, 'epublish_edition');
+  db_drop_index($ret, 'epublish_edition', 'pid');
+  db_change_field($ret, 'epublish_edition', 'eid', 'eid', array('type' => 'serial', 'not null' => TRUE), array('primary key' => array('eid')));
+  // perhaps add 'indexes' => array('pid' => 'pid') to the end there, not sure on exact syntax.
+ 
+  db_drop_primary_key($ret, 'epublish_publication');
+  db_change_field($ret, 'epublish_publication', 'pid', 'pid', array('type' => 'serial', 'not null' => TRUE), array('primary key' => array('pid')));
+ 
+  db_drop_primary_key($ret, 'epublish_section');
+  db_change_field($ret, 'epublish_section', 'sid', 'sid', array('type' => 'serial', 'not null' => TRUE), array('primary key' => array('sid')));
+ 
+  return $ret;
+}
+

