diff --git a/core/modules/system/system.install b/core/modules/system/system.install index a0849b1..6d3c888 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1085,3 +1085,32 @@ function system_schema() { return $schema; } + +/** + * Change two fields on the default menu link storage. + */ +function system_update_8001() { + if (db_table_exists('menu_tree')) { + $spec = array( + 'description' => 'The title for the link. May be a serialized TranslationWrapper', + 'type' => 'blob', + 'size' => 'big', + 'not null' => FALSE, + 'serialize' => TRUE, + ); + db_change_field('menu_tree', 'title', 'title', $spec); + $spec = array( + 'description' => 'The description of this link - used for admin pages and title attribute.', + 'type' => 'blob', + 'size' => 'big', + 'not null' => FALSE, + 'serialize' => TRUE, + ); + db_change_field('menu_tree', 'description', 'description', $spec); + db_update('menu_tree') + ->fields(array('title' => NULL, 'description' => NULL)) + ->execute(); + db_drop_field('menu_tree', 'title_arguments'); + db_drop_field('menu_tree', 'title_context'); + } +} \ No newline at end of file