? files
? modules/comment/comment.admin.js
? sites/all/modules
? sites/default/settings.php
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.710
diff -u -F^f -r1.710 common.inc
--- includes/common.inc	4 Nov 2007 21:24:09 -0000	1.710
+++ includes/common.inc	10 Nov 2007 18:05:32 -0000
@@ -2980,6 +2980,10 @@ function drupal_get_schema($name = NULL,
  *
  * @param $module
  *   The module for which the tables will be created.
+ * @return
+ *   An array of arrays with the following key/value pairs:
+ *      success: a boolean indicating whether the query succeeded
+ *      query: the SQL query(s) executed, passed through check_plain()
  */
 function drupal_install_schema($module) {
   $schema = drupal_get_schema_unprocessed($module);
@@ -2989,6 +2993,7 @@ function drupal_install_schema($module) 
   foreach ($schema as $name => $table) {
     db_create_table($ret, $name, $table);
   }
+  return $ret;
 }
 
 /**
@@ -3000,6 +3005,10 @@ function drupal_install_schema($module) 
  *
  * @param $module
  *   The module for which the tables will be removed.
+ * @return
+ *   An array of arrays with the following key/value pairs:
+ *      success: a boolean indicating whether the query succeeded
+ *      query: the SQL query(s) executed, passed through check_plain()
  */
 function drupal_uninstall_schema($module) {
   $schema = drupal_get_schema_unprocessed($module);
@@ -3007,8 +3016,11 @@ function drupal_uninstall_schema($module
 
   $ret = array();
   foreach ($schema as $table) {
-    db_drop_table($ret, $table['name']);
+    if (db_table_exists($table['name'])) {
+      db_drop_table($ret, $table['name']);
+    }
   }
+  return $ret;
 }
 
 /**
