Skip to content
Snippets Groups Projects

Adding index for the pph fields

1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -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