function nodewords_update_6181 in Nodewords: D6 Meta Tags 6
In 6.x-1.12-x the custom-path functionality was managed by a submodule, so it is possible for sites to be updated and not have the table.
File
- ./
nodewords.install, line 1615 - Installation file for nodewords.module.
Code
function nodewords_update_6181() {
$ret = array();
$table = 'nodewords_custom';
// Ensure the table exists.
if (db_table_exists($table)) {
$ret[] = array(
'success' => TRUE,
'query' => "The {$table} table already exists so nothing needs to be done.",
);
}
else {
$ret[] = array(
'success' => TRUE,
'query' => "The {$table} table doesn't exist so it will be added.",
);
$schema = nodewords_schema();
db_create_table($ret, $table, $schema[$table]);
$ret[] = array(
'success' => TRUE,
'query' => "The {$table} table has been created.",
);
}
return $ret;
}