function nodewords_update_6115 in Nodewords: D6 Meta Tags 6
Same name and namespace in other branches
- 6.2 nodewords.install \nodewords_update_6115()
Implements hook_update_N().
File
- ./
nodewords.install, line 549 - Installation file for nodewords.module.
Code
function nodewords_update_6115() {
$ret = array();
if (db_column_exists('nodewords', 'weight')) {
db_drop_field($ret, 'nodewords', 'weight');
}
if (!db_table_exists('nodewords_custom')) {
db_create_table($ret, 'nodewords_custom', array(
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'path' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'weight' => array(
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
),
'enabled' => array(
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 1,
),
),
'primary key' => array(
'pid',
),
'unique keys' => array(
'path' => array(
'path',
),
),
));
}
return $ret;
}