You are here

function nodewords_update_6120 in Nodewords: D6 Meta Tags 6.2

Same name and namespace in other branches
  1. 6 nodewords.install \nodewords_update_6120()

Implements hook_update_N().

File

./nodewords.install, line 492
Install, update and uninstall functions for the Nodewords module.

Code

function nodewords_update_6120() {
  $ret = array();
  db_drop_unique_key($ret, 'nodewords', 'tin');
  db_change_field($ret, 'nodewords', 'type', 'type', array(
    'type' => 'varchar',
    'length' => 16,
    'not null' => TRUE,
    'default' => '',
  ));
  db_change_field($ret, 'nodewords', 'id', 'id', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
  db_change_field($ret, 'nodewords', 'name', 'name', array(
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_unique_key($ret, 'nodewords', 'tin', array(
    'type',
    'id',
    'name',
  ));
  return $ret;
}