### Eclipse Workspace Patch 1.0
#P drupal_test_7
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.1008
diff -u -r1.1008 node.module
--- modules/node/node.module	31 Dec 2008 12:02:22 -0000	1.1008
+++ modules/node/node.module	1 Jan 2009 23:58:27 -0000
@@ -1009,16 +1009,6 @@
     if (!isset($node->log)) {
       $node->log = '';
     }
-
-    // For the same reasons, make sure we have $node->teaser and
-    // $node->body. We should consider making these fields nullable
-    // in a future version since node types are not required to use them.
-    if (!isset($node->teaser)) {
-      $node->teaser = '';
-    }
-    if (!isset($node->body)) {
-      $node->body = '';
-    }
   }
   elseif (!empty($node->revision)) {
     $node->old_vid = $node->vid;
Index: modules/node/node.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.install,v
retrieving revision 1.9
diff -u -r1.9 node.install
--- modules/node/node.install	3 Dec 2008 16:32:21 -0000	1.9
+++ modules/node/node.install	1 Jan 2009 23:58:25 -0000
@@ -242,13 +242,13 @@
       'body' => array(
         'description' => 'The body of this version.',
         'type' => 'text',
-        'not null' => TRUE,
+        'not null' => FALSE,
         'size' => 'big',
       ),
       'teaser' => array(
         'description' => 'The teaser of this version.',
         'type' => 'text',
-        'not null' => TRUE,
+        'not null' => FALSE,
         'size' => 'big',
       ),
       'log' => array(
@@ -407,5 +407,15 @@
 }
 
 /**
+ * Make body and teaser columns nullable in {node_revision} table.
+ */
+function node_update_7002() {
+  $ret = array();
+  db_change_field($ret, 'node_revision', 'body', 'body', array('type' => 'text', 'not null' => FALSE, 'size' => 'big'));
+  db_change_field($ret, 'node_revision', 'teaser', 'teaser', array('type' => 'text', 'not null' => FALSE, 'size' => 'big'));
+  return $ret;
+}
+
+/**
  * End of 6.x to 7.x updates
  */
