--- modules/node/node.install	Wed Oct 06 18:28:20 2010
+++ modules/node/node.install	Wed Nov 10 15:27:36 2010
@@ -534,14 +534,24 @@
 
 /**
  * Add status/comment/promote and sticky columns to the {node_revision} table.
+ * Uses batching to work around having a large amount of records in the table.
  */
-function node_update_7005() {
-  foreach (array('status', 'comment', 'promote', 'sticky') as $column) {
-    db_add_field('node_revision', $column, array(
-      'type' => 'int',
-      'not null' => TRUE,
-      'default' => 0,
-    ));
+function node_update_7005(&$sandbox) {
+  $sandbox['#finished'] = 0;
+
+  if (!isset($sandbox['columns'])) {
+    $sandbox['columns'] = array('status', 'comment', 'promote', 'sticky');
+  }
+
+  $column = array_shift($sandbox['columns']);
+  db_add_field('node_revision', $column, array(
+    'type' => 'int',
+    'not null' => TRUE,
+    'default' => 0,
+  ));
+
+  if (empty($sandbox['columns'])) {
+    $sandbox['#finished'] = 1;
   }
 }
 
