function menu_node_update_6002 in Menu Node API 6
Same name and namespace in other branches
- 7 menu_node.install \menu_node_update_6002()
Update to the new schema with only mlid as primary key.
1 call to menu_node_update_6002()
- menu_node_update_6004 in ./
menu_node.install - Repeat update_6002, which failed on some systems.
File
- ./
menu_node.install, line 96 - Install file for Menu Node API.
Code
function menu_node_update_6002() {
$ret = array();
db_drop_primary_key($ret, 'menu_node');
db_drop_index($ret, 'menu_node', 'nid');
db_add_primary_key($ret, 'menu_node', array(
'mlid',
));
db_add_index($ret, 'menu_node', 'nid', array(
'nid',
));
return $ret;
}