summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-08-23 08:15:37 +0000
committerDries Buytaert <dries@buytaert.net>2008-08-23 08:15:37 +0000
commit580feef5e04350b6430eb7401be59922cb606e60 (patch)
tree1f8910fa520801800f20ad841a83b7b3caf465d4
parent827ac12ea9735b12bdf2838c470b71574bd9a195 (diff)
downloadbrdo-580feef5e04350b6430eb7401be59922cb606e60.tar.gz
brdo-580feef5e04350b6430eb7401be59922cb606e60.tar.bz2
- Patch #227486 by profix898: increase length of database fields for menu items.
-rw-r--r--modules/system/system.install17
1 files changed, 13 insertions, 4 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index fc28922ed..244e1bbf6 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -765,15 +765,13 @@ function system_schema() {
),
'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.'),
- 'type' => 'varchar',
- 'length' => 255,
+ 'type' => 'text',
'not null' => TRUE,
'default' => '',
),
'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.'),
- 'type' => 'varchar',
- 'length' => 255,
+ 'type' => 'text',
'not null' => TRUE,
'default' => '',
),
@@ -3042,6 +3040,17 @@ function system_update_7009() {
}
/**
+ * 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"
* The next series of updates should start at 8000.
*/