function entity_menu_links_schema_alter in Entity menu links 7
Implements hook_schema_alter().
File
- ./
entity_menu_links.install, line 89
Code
function entity_menu_links_schema_alter(&$schema = array()) {
$schema['menu_links']['fields']['vid'] = array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Revision id.',
);
$schema['menu_links']['fields']['uuid'] = array(
'type' => 'char',
'length' => 36,
'not null' => TRUE,
'default' => '',
'description' => 'The Universally Unique Identifier.',
);
$schema['menu_links_revision'] = $schema['menu_links'];
$schema['menu_links_revision']['module'] = 'entity_menu_links';
$schema['menu_links_revision']['name'] = 'menu_links_revision';
$schema['menu_links_revision']['fields']['mlid'] = array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
$schema['menu_links_revision']['fields']['vid'] = array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
);
$schema['menu_links_revision']['fields']['timestamp'] = array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
$schema['menu_links_revision']['fields']['vuuid'] = $schema['menu_links_revision']['fields']['uuid'];
unset($schema['menu_links_revision']['fields']['uuid']);
$schema['menu_links_revision']['primary key'] = array(
'vid',
);
$schema['menu_links_revision']['foreign keys'] = array(
'versioned_menu_link' => array(
'table' => 'menu_links',
'columns' => array(
'mlid' => 'mlid',
),
),
);
}