You are here

function menu_node_update_6002 in Menu Node API 7

Same name and namespace in other branches
  1. 6 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 103
Install file for Menu Node API.

Code

function menu_node_update_6002() {
  db_drop_primary_key('menu_node');
  db_drop_index('menu_node', 'nid');
  db_add_primary_key('menu_node', array(
    'mlid',
  ));
  db_add_index('menu_node', 'nid', array(
    'nid',
  ));
  return t('Updated primary key and indeces for {menu_node}');
}