Skip to content

Commit

Permalink
Merge pull request #16144 from eileenmcnaughton/acl_index
Browse files Browse the repository at this point in the history
dev/core#1486 Add index to civicrm_acl_cache.modified_date
  • Loading branch information
seamuslee001 authored Dec 23, 2019
2 parents e259da3 + 1ec2637 commit 1ca18cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CRM/ACL/DAO/ACLCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/ACL/ACLCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:a7bccfc35714fdcf0fdb6f4cd24842bd)
* (GenCodeChecksum:9428e81469c11a64dc2e7490da81a439)
*/

/**
Expand Down Expand Up @@ -215,6 +215,14 @@ public static function indices($localize = TRUE) {
'localizable' => FALSE,
'sig' => 'civicrm_acl_cache::0::acl_id',
],
'index_modified_date' => [
'name' => 'index_modified_date',
'field' => [
0 => 'modified_date',
],
'localizable' => FALSE,
'sig' => 'civicrm_acl_cache::0::modified_date',
],
];
return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
}
Expand Down
5 changes: 5 additions & 0 deletions xml/schema/ACL/Cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@
<comment>When was this cache entry last modified</comment>
<add>1.6</add>
</field>
<index>
<name>index_modified_date</name>
<fieldName>modified_date</fieldName>
<add>5.22</add>
</index>
</table>

0 comments on commit 1ca18cc

Please sign in to comment.