You are here

function nodewords_update_6170 in Nodewords: D6 Meta Tags 6

Implements hook_update_N().

File

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

Code

function nodewords_update_6170() {
  $ret = array();
  db_drop_index($ret, 'nodewords', 'nodewords_type_id');
  db_drop_unique_key($ret, 'nodewords', 'nodewords_type_id_name');
  db_change_field($ret, 'nodewords', 'type', 'type', array(
    'type' => 'int',
    'size' => 'small',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field($ret, 'nodewords', 'id', 'id', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_index($ret, 'nodewords', 'nodewords_type_id', array(
    'type',
    'id',
  ));
  db_add_unique_key($ret, 'nodewords', 'nodewords_type_id_name', array(
    'type',
    'id',
    'name',
  ));
  variable_set('nodewords_update', 6169);
  return $ret;
}