You are here

function nodewords_update_6147 in Nodewords: D6 Meta Tags 6

Same name and namespace in other branches
  1. 6.2 nodewords.install \nodewords_update_6147()

Implements hook_update_N().

1 string reference to 'nodewords_update_6147'
nodewords_uninstall in ./nodewords.install
Implements hook_uninstall().

File

./nodewords.install, line 936
Installation file for nodewords.module.

Code

function nodewords_update_6147() {
  $ret = array();
  if (db_column_exists('nodewords', 'language')) {
    db_drop_unique_key($ret, 'nodewords', 'nodewords_type_id_name_lang');
    db_drop_index($ret, 'nodewords', 'nodewords_lang');
    db_drop_field($ret, 'nodewords', 'language');
  }
  db_add_unique_key($ret, 'nodewords', 'nodewords_type_id_name', array(
    'type',
    'id',
    'name',
  ));
  return $ret;
}