? sites/default/files ? sites/default/settings.php Index: includes/database/mysql/schema.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database/mysql/schema.inc,v retrieving revision 1.1 diff -u -p -r1.1 schema.inc --- includes/database/mysql/schema.inc 21 Aug 2008 19:36:36 -0000 1.1 +++ includes/database/mysql/schema.inc 27 Aug 2008 21:11:36 -0000 @@ -73,6 +73,12 @@ class DatabaseSchema_mysql extends Datab protected function createFieldSql($name, $spec) { $sql = "`" . $name . "` " . $spec['mysql_type']; + // BLOB and TEXT columns cannot have DEFAULT values. + // Refer to http://dev.mysql.com/doc/refman/5.1/en/blob.html + if (($spec['type'] == 'text') || ($spec['type'] == 'blob')) { + unset($spec['default']); + } + if (isset($spec['length'])) { $sql .= '(' . $spec['length'] . ')'; } Index: modules/node/node.install =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.install,v retrieving revision 1.6 diff -u -p -r1.6 node.install --- modules/node/node.install 15 Apr 2008 08:39:03 -0000 1.6 +++ modules/node/node.install 27 Aug 2008 21:11:36 -0000 @@ -241,14 +241,16 @@ function node_schema() { ), 'body' => array( 'description' => t('The body of this version.'), - 'type' => 'text', + 'type' => 'blob', 'not null' => TRUE, + 'default' => '', 'size' => 'big', ), 'teaser' => array( 'description' => t('The teaser of this version.'), - 'type' => 'text', + 'type' => 'blob', 'not null' => TRUE, + 'default' => '', 'size' => 'big', ), 'log' => array( Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.261 diff -u -p -r1.261 system.install --- modules/system/system.install 23 Aug 2008 08:15:37 -0000 1.261 +++ modules/system/system.install 27 Aug 2008 21:11:37 -0000 @@ -3051,6 +3051,17 @@ function system_update_7010() { } /** + * Remap {node_revisions}.body and {node_revisions}.teaser as BLOB type. + */ +function system_update_7011() { + $ret = array(); + db_change_field($ret, 'node_revisions', 'body', 'body', array('type' => 'blob', 'not null' => TRUE, 'default' => '', 'size' => 'big')); + db_change_field($ret, 'node_revisions', 'teaser', 'teaser', array('type' => 'blob', 'not null' => TRUE, 'default' => '', 'size' => 'big')); + + return $ret; +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */