You are here

function nodewords_update_6145 in Nodewords: D6 Meta Tags 6

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

Implements hook_update_N().

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

File

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

Code

function nodewords_update_6145() {
  $ret = array();
  db_drop_unique_key($ret, 'nodewords', 'tin');
  db_drop_index($ret, 'nodewords', 'nodewords_id');
  db_drop_index($ret, 'nodewords', 'nodewords_type');
  db_add_field($ret, 'nodewords', 'language', array(
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_index($ret, 'nodewords', 'nodewords_lang', array(
    array(
      'language',
      6,
    ),
  ));
  db_add_index($ret, 'nodewords', 'nodewords_name', array(
    array(
      'name',
      6,
    ),
  ));
  db_add_index($ret, 'nodewords', 'nodewords_type_id', array(
    array(
      'type',
      6,
    ),
    array(
      'id',
      6,
    ),
  ));
  db_add_unique_key($ret, 'nodewords', 'nodewords_type_id_name_lang', array(
    'type',
    'id',
    'name',
    'language',
  ));
  return $ret;
}