Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
password_policy
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
password_policy
Merge requests
!68
Adding index for the pph fields
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Adding index for the pph fields
issue/password_policy-3319607:3319607-index-pph-fields
into
4.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Siva Karthik Reddy Papudippu
requested to merge
issue/password_policy-3319607:3319607-index-pph-fields
into
4.0.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3319607
0
0
Merge request reports
Compare
4.0.x
4.0.x (HEAD)
and
latest version
latest version
dd202803
1 commit,
1 year ago
1 file
+
9
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
password_policy_history/password_policy_history.install
+
9
−
0
Options
@@ -67,3 +67,12 @@ function password_policy_history_schema() {
@@ -67,3 +67,12 @@ function password_policy_history_schema() {
];
];
return
$schema
;
return
$schema
;
}
}
/**
* Add index for the fields of password_policy_history.
*/
function
password_policy_history_update_10001
()
{
$database
=
\Drupal
::
database
();
$pp_history
=
"ALTER TABLE password_policy_history ADD INDEX pph_timestamp (timestamp), ADD INDEX pph_hash (pass_hash), ADD INDEX pph_uid (uid)"
;
$database
->
query
(
$pp_history
);
}
Loading