Skip to content

Commit

Permalink
Merge pull request #47 from TheDMSGroup/ledger-new-index
Browse files Browse the repository at this point in the history
add index to ledger table for campaign, date, cost, revenue
  • Loading branch information
heathdutton authored May 16, 2018
2 parents 5a1eeb3 + 6b27d34 commit c908dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Entity/LedgerEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public static function loadMetadata(ClassMetadata $metadata)
->build();

$builder->addIndex(['campaign_id', 'contact_id'], 'idx_campaigncontact')
->addIndex(['date_added', 'contact_id', 'campaign_id'], 'idx_datecontact');
->addIndex(['date_added', 'contact_id', 'campaign_id'], 'idx_datecontact')
->addIndex(['campaign_id', 'date_added', 'cost', 'revenue'], 'idx_campaigndatecostrevenue');
}

/**
Expand Down

0 comments on commit c908dc0

Please sign in to comment.