=== modified file 'uc_store/uc_store.install'
--- uc_store/uc_store.install	2009-07-21 14:29:21 +0000
+++ uc_store/uc_store.install	2009-10-21 19:01:07 +0000
@@ -15,7 +15,7 @@
   $schema['uc_countries'] = array(
     'fields' => array(
       'country_id' => array(
-        'type' => 'serial',
+        'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
       ),
@@ -301,3 +301,23 @@
   return $ret;
 }
 
+/**
+ * Remove auto-increment from uc_countries.country_id.
+ */
+function uc_store_update_6005() {
+  $ret = array();
+
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      db_change_field($ret, 'uc_countries', 'country_id', 'country_id', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE));
+      break;
+    case 'pgsql':
+      db_drop_primary_key($ret, 'uc_countries');
+      db_change_field($ret, 'uc_countries', 'country_id', 'country_id', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE), array('primary key' => array('country_id')));
+      break;
+  }
+
+  return $ret;
+}
+

