- Patch #227486 by profix898: increase length of database fields for menu items.
parent
827ac12ea9
commit
580feef5e0
|
@ -765,15 +765,13 @@ function system_schema() {
|
||||||
),
|
),
|
||||||
'load_functions' => array(
|
'load_functions' => array(
|
||||||
'description' => t('A serialized array of function names (like node_load) to be called to load an object corresponding to a part of the current path.'),
|
'description' => t('A serialized array of function names (like node_load) to be called to load an object corresponding to a part of the current path.'),
|
||||||
'type' => 'varchar',
|
'type' => 'text',
|
||||||
'length' => 255,
|
|
||||||
'not null' => TRUE,
|
'not null' => TRUE,
|
||||||
'default' => '',
|
'default' => '',
|
||||||
),
|
),
|
||||||
'to_arg_functions' => array(
|
'to_arg_functions' => array(
|
||||||
'description' => t('A serialized array of function names (like user_uid_optional_to_arg) to be called to replace a part of the router path with another string.'),
|
'description' => t('A serialized array of function names (like user_uid_optional_to_arg) to be called to replace a part of the router path with another string.'),
|
||||||
'type' => 'varchar',
|
'type' => 'text',
|
||||||
'length' => 255,
|
|
||||||
'not null' => TRUE,
|
'not null' => TRUE,
|
||||||
'default' => '',
|
'default' => '',
|
||||||
),
|
),
|
||||||
|
@ -3041,6 +3039,17 @@ function system_update_7009() {
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Increase the size of the 'load_functions' and 'to_arg_functions' fields in table 'menu_router'.
|
||||||
|
*/
|
||||||
|
function system_update_7010() {
|
||||||
|
$ret = array();
|
||||||
|
db_change_field($ret, 'menu_router', 'load_functions', 'load_functions', array('type' => 'text', 'not null' => TRUE, 'default' => ''));
|
||||||
|
db_change_field($ret, 'menu_router', 'to_arg_functions', 'to_arg_functions', array('type' => 'text', 'not null' => TRUE, 'default' => '',));
|
||||||
|
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @} End of "defgroup updates-6.x-to-7.x"
|
* @} End of "defgroup updates-6.x-to-7.x"
|
||||||
* The next series of updates should start at 8000.
|
* The next series of updates should start at 8000.
|
||||||
|
|
Loading…
Reference in New Issue