Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advancedqueue
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
advancedqueue
Commits
5305da87
Commit
5305da87
authored
2 months ago
by
Jonathan Sacksick
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3504277
by jsacksick: Add a index on advancedqueue.type.
parent
a8864851
No related branches found
No related tags found
No related merge requests found
Pipeline
#414617
passed with warnings
2 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
advancedqueue.install
+12
-0
12 additions, 0 deletions
advancedqueue.install
with
12 additions
and
0 deletions
advancedqueue.install
+
12
−
0
View file @
5305da87
...
...
@@ -91,6 +91,7 @@ function advancedqueue_schema() {
'queue_expires'
=>
[
'expires'
],
'fingerprint'
=>
[
'fingerprint'
],
'queue_processed'
=>
[
'processed'
],
'type'
=>
[
'type'
],
],
];
...
...
@@ -135,3 +136,14 @@ function advancedqueue_update_8104() {
$schema
->
addIndex
(
'advancedqueue'
,
'fingerprint'
,
[
'fingerprint'
],
$spec
[
'advancedqueue'
]);
}
}
/**
* Add an index on the "type" column.
*/
function
advancedqueue_update_8105
()
{
$spec
=
advancedqueue_schema
();
$schema
=
\Drupal
::
database
()
->
schema
();
if
(
!
$schema
->
indexExists
(
'advancedqueue'
,
'type'
))
{
$schema
->
addIndex
(
'advancedqueue'
,
'type'
,
[
'type'
],
$spec
[
'advancedqueue'
]);
}
}
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