Skip to content
Snippets Groups Projects
Commit 1f2c06b3 authored by Wolfgang Ziegler's avatar Wolfgang Ziegler
Browse files

Issue #2650886 by fago: Add an index for retrieving active config of a certain plugin.

parent 3bf265fd
No related branches found
Tags 7.x-2.10
No related merge requests found
......@@ -122,7 +122,7 @@ function rules_schema() {
'name' => array('name'),
),
'indexes' => array(
'plugin' => array('plugin'),
'plugin' => array('plugin', 'active'),
),
);
$schema['rules_trigger'] = array(
......@@ -526,3 +526,13 @@ function rules_update_7214() {
_rules_rebuild_component_cache();
RulesEventSet::rebuildEventCache();
}
/**
* Add an index for retrieving active config of a certain plugin.
*/
function rules_update_7215() {
if (db_index_exists('rules_config', 'plugin')) {
db_drop_index('rules_config', 'plugin');
}
db_add_index('rules_config', 'plugin', array('plugin', 'active'));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment