You are here

function customfilter_update_6109 in Custom filter 6

Same name and namespace in other branches
  1. 7.2 customfilter.install \customfilter_update_6109()
  2. 7 customfilter.install \customfilter_update_6109()

Implements hook_update_N().

File

./customfilter.install, line 332
Installation file for Custom filter.

Code

function customfilter_update_6109() {
  $ret = array();
  db_drop_primary_key($ret, 'customfilter_filters');
  db_change_field($ret, 'customfilter_filters', 'fid', 'fid', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 1,
  ), array(
    'primary key' => array(
      'fid',
    ),
  ));
  db_change_field($ret, 'customfilter_rules', 'fid', 'fid', array(
    'description' => 'The ID of the filter containing the replacement rule.',
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}