You are here

function taxonomy_menu_update_7200 in Taxonomy menu 7.2

Update database schema to handle languages.

File

./taxonomy_menu.install, line 116
Install and uninstall all required databases. Also do incremental database updates.

Code

function taxonomy_menu_update_7200() {
  $schema = taxonomy_menu_schema();
  db_add_field('taxonomy_menu', 'language', $schema['taxonomy_menu']['fields']['language']);
  db_drop_primary_key('taxonomy_menu');
  db_add_primary_key('taxonomy_menu', $schema['taxonomy_menu']['primary key']);
}