function customfilter_update_6111 in Custom filter 6
Same name and namespace in other branches
- 7.2 customfilter.install \customfilter_update_6111()
- 7 customfilter.install \customfilter_update_6111()
Implements hook_update_N().
2 string references to 'customfilter_update_6111'
- customfilter_uninstall in ./
customfilter.install - Implements hook_uninstall().
- customfilter_update_6119 in ./
customfilter.install - Implements hook_update_N().
File
- ./
customfilter.install, line 362 - Installation file for Custom filter.
Code
function customfilter_update_6111() {
$ret = array();
db_drop_index($ret, 'customfilter_rules', 'weight');
db_add_index($ret, 'customfilter_rules', 'customfilter_rule_fid', array(
'fid',
));
db_add_index($ret, 'customfilter_rules', 'customfilter_rule_weight', array(
'weight',
));
if (db_table_exists('customfilter_filters')) {
if (db_table_exists('customfilter_filter')) {
db_drop_table($ret, 'customfilter_filter');
}
db_rename_table($ret, 'customfilter_filters', 'customfilter_filter');
}
if (db_table_exists('customfilter_rules')) {
if (db_table_exists('customfilter_rule')) {
db_drop_table($ret, 'customfilter_rule');
}
db_rename_table($ret, 'customfilter_rules', 'customfilter_rule');
}
return $ret;
}