Enable the new Menu link module.
Creates the langcode and UUID columns for menu links.
function system_update_8048() {
// Enable the module without re-installing the schema.
module_enable(array(
'menu_link',
));
// Add the langcode column if it doesn't exist.
if (!db_field_exists('menu_inks', 'langcode')) {
$column = array(
'description' => 'The {language}.langcode of this entity.',
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
);
db_add_field('menu_links', 'langcode', $column);
}
// Add the UUID column.
$column = array(
'description' => 'Unique Key: Universally unique identifier for this entity.',
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
);
$keys = array(
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
db_add_field('menu_links', 'uuid', $column, $keys);
}