You are here

function menu_target_update_7100 in Menu target 7

Implements hook_update_N(). Creates custom table for menu target attributes

File

./menu_target.install, line 49
Uninstall hooks for Menu Target

Code

function menu_target_update_7100() {
  $schema['menu_target_links'] = array(
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'mlid' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'id',
    ),
    'unique keys' => array(
      'mlid' => array(
        'mlid',
      ),
    ),
  );
  db_create_table('menu_target_links', $schema['menu_target_links']);
}