function nodewords_update_6301 in Nodewords: D6 Meta Tags 6.3
Implements hook_update_N().
File
- ./
nodewords.install, line 208 - Install, update and uninstall functions for the Nodewords module.
Code
function nodewords_update_6301() {
$ret = array();
if (!db_column_exists('nodewords', 'language')) {
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_drop_unique_key($ret, 'nodewords', 'nodewords_type_id_name');
return $ret;
}