Index: uuid.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uuid/uuid.install,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 uuid.install
--- uuid.install	8 Sep 2010 16:07:14 -0000	1.1.2.9
+++ uuid.install	23 Sep 2010 01:07:30 -0000
@@ -56,7 +56,7 @@ function uuid_table_schema($table, $key 
         'description' => 'The primary key of the record which this UUID was generated for.',
       ),
       'uuid' => array(
-        'type' => 'varchar',
+        'type' => 'char',
         'length' => 64,
         'not null' => TRUE,
         'default' => '',
@@ -111,12 +111,29 @@ function uuid_update_6002() {
 }
 
 /**
- * Create uuid_comment table.
+ * 1. Create uuid_comment table.
+ *
+ * 2. fix the column definitions for uuid columns in all tables
+ * to use the more efficient char spec.
  */
 function uuid_update_6003() {
   $ret = array();
 
-  db_create_table($ret, 'uuid_comments', uuid_table_schema('comments', 'cid'));
+  if (!db_table_exists('uuid_comments')) {
+    db_create_table($ret, 'uuid_comments', uuid_table_schema('comments', 'cid'));
+  }
+
+  $tables = uuid_schema();//
+  $tables = array_keys($tables);
+  // use what's in uuid_table_schema in order to be consistent
+  $field_specs = uuid_table_schema('uuid_node');
+  $spec = $field_specs['fields']['uuid'];
+
+  while (list(, $table) = each($tables)) {
+    if (db_table_exists($table)) {
+      db_change_field($ret, $table, 'uuid', 'uuid', $spec);
+    }
+  }
 
   return $ret;
 }
