Index: database/updates.inc
===================================================================
RCS file: /cvs/drupal/drupal/database/updates.inc,v
retrieving revision 1.129
diff -u -p -r1.129 updates.inc
--- database/updates.inc	30 Aug 2005 15:19:20 -0000	1.129
+++ database/updates.inc	7 Sep 2005 20:11:47 -0000
@@ -44,7 +44,8 @@ $sql_updates = array(
   "2005-07-30" => "update_143",
   "2005-08-08" => "update_144",
   "2005-08-15" => "update_145",
-  "2005-08-25" => "update_146"
+  "2005-08-25" => "update_146",
+  "2005-09-07" => "update_147"
 );
 
 function update_110() {
@@ -778,6 +779,17 @@ function update_146() {
   return $ret;
 }
 
+function update_147() {
+  $ret = array();
+
+  // this update is mysql only, pgsql should get it right in the first try.
+  if ($GLOBALS['db_type'] == 'mysql') {
+    $ret[] = update_sql("ALTER TABLE {node_revisions} DROP type");
+  }
+
+  return $ret;
+}
+
 function update_sql($sql) {
   $edit = $_POST["edit"];
   $result = db_query($sql);
