function customfilter_update_6109 in Custom filter 7
Same name and namespace in other branches
- 6 customfilter.install \customfilter_update_6109()
- 7.2 customfilter.install \customfilter_update_6109()
Implements hook_update_N().
File
- ./
customfilter.install, line 355 - Installation file for Custom filter.
Code
function customfilter_update_6109() {
$ret = array();
db_drop_primary_key('customfilter_filters');
db_change_field('customfilter_filters', 'fid', 'fid', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
), array(
'primary key' => array(
'fid',
),
));
db_change_field('customfilter_rules', 'fid', 'fid', array(
'description' => 'The ID of the filter containing the replacement rule.',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
));
// hook_update_N() no longer returns a $ret array. Instead, return
// nothing or a translated string indicating the update ran successfully.
// See http://drupal.org/node/224333#update_sql.
return t('TODO Add a descriptive string here to show in the UI.');
}