Commit 3f03b042 authored by Dries's avatar Dries
Browse files

- Patch #126229 by ChrisKennedy, asimmonds et al: increase node title...

- Patch #126229 by ChrisKennedy, asimmonds et al: increase node title maxlength to 255 so people can use it to enter publictions with really long titles. ;)
parent 4bf0b45a
......@@ -3185,6 +3185,7 @@ function node_content_form($node, $form_state) {
'#title' => check_plain($type->title_label),
'#required' => TRUE,
'#default_value' => $node->title,
'#maxlength' => 255,
'#weight' => -5,
);
}
......
......@@ -8,7 +8,7 @@ function node_schema() {
'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0),
'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
'language' => array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => ''),
'title' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
'uid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
'status' => array('type' => 'int', 'not null' => TRUE, 'default' => 1),
'created' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
......@@ -72,7 +72,7 @@ function node_schema() {
'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
'vid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
'uid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
'title' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
'body' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
'teaser' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
'log' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
......
......@@ -3428,6 +3428,17 @@ function system_update_6024() {
return $ret;
}
/**
* Increase the maximum length of node titles from 128 to 255.
*/
function system_update_6025() {
$ret = array();
db_update_field($ret, 'node', 'title');
db_update_field($ret, 'node_revisions', 'title');
return $ret;
}
/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment