Skip to content

Commit

Permalink
Merge pull request #19288 from eileenmcnaughton/group3
Browse files Browse the repository at this point in the history
Add index on civicrm_group.cache_date
  • Loading branch information
seamuslee001 authored Jan 6, 2021
2 parents 20dc984 + b29bfb6 commit 2107292
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CRM/Contact/DAO/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Contact/Group.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:3648ad60c504d25253ecc5655c629d72)
* (GenCodeChecksum:92977cbc500e10cef9399e66c0e63597)
*/

/**
Expand Down Expand Up @@ -630,6 +630,14 @@ public static function &export($prefix = FALSE) {
*/
public static function indices($localize = TRUE) {
$indices = [
'UI_cache_date' => [
'name' => 'UI_cache_date',
'field' => [
0 => 'cache_date',
],
'localizable' => FALSE,
'sig' => 'civicrm_group::0::cache_date',
],
'index_group_type' => [
'name' => 'index_group_type',
'field' => [
Expand Down
5 changes: 5 additions & 0 deletions xml/schema/Contact/Group.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
<comment>Date when we created the cache for a smart group</comment>
<add>2.1</add>
</field>
<index>
<name>UI_cache_date</name>
<fieldName>cache_date</fieldName>
<add>5.34</add>
</index>
<field>
<name>refresh_date</name>
<type>timestamp</type>
Expand Down

0 comments on commit 2107292

Please sign in to comment.