Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rules-3461953
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
rules-3461953
Commits
1f2c06b3
Commit
1f2c06b3
authored
8 years ago
by
Wolfgang Ziegler
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2650886
by fago: Add an index for retrieving active config of a certain plugin.
parent
3bf265fd
No related branches found
Branches containing commit
Tags
7.x-2.10
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rules.install
+11
-1
11 additions, 1 deletion
rules.install
with
11 additions
and
1 deletion
rules.install
+
11
−
1
View file @
1f2c06b3
...
...
@@ -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'
));
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment