function customfilter_update_6206 in Custom filter 6.2
Implements hook_update_N().
File
- ./
customfilter.install, line 218 - Installation file for Custom filter.
Code
function customfilter_update_6206() {
$ret = array();
$schema = array();
$schema['customfilter_description'] = array(
'fields' => array(
'fdid' => array(
'description' => 'The primary key.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'fid' => array(
'description' => 'The filter ID.',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
),
'language' => array(
'description' => 'The language of these descriptions.',
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
),
'name' => array(
'description' => 'The human-readable name of this filter.',
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'description' => array(
'description' => 'The filter description.',
'type' => 'text',
'not null' => TRUE,
),
'longtip' => array(
'description' => 'The filter description shown in the filters description page.',
'type' => 'text',
'not null' => TRUE,
),
'shorttip' => array(
'description' => 'The short description shown in the node editing page.',
'type' => 'text',
'not null' => TRUE,
),
),
'indexes' => array(
'customfilter_description_lang' => array(
array(
'language',
6,
),
),
),
'unique keys' => array(
'customfilter_description_fid_lang' => array(
'fid',
'language',
),
),
'primary key' => array(
'fdid',
),
);
if (!db_table_exists('customfilter_description')) {
db_create_table($ret, 'customfilter_description', $schema['customfilter_description']);
}
cache_clear_all('functions', 'cache_customfilter');
$ret[] = array(
'success' => TRUE,
'query' => 'Updated the module cache',
);
return $ret;
}