Skip to content

Commit

Permalink
Fix issue where key index is also dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Feb 6, 2017
1 parent 8c748d5 commit 45412b5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CRM/Upgrade/Incremental/php/FourSeven.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,6 @@ public static function addHelpPreAndHelpPostFieldsPriceFieldValue(CRM_Queue_Task
*/
public static function dropActionScheudleMappingForeignKey(CRM_Queue_TaskContext $ctx) {
CRM_Core_BAO_SchemaHandler::safeRemoveFK('civicrm_action_schedule', 'FK_civicrm_action_schedule_mapping_id');
if (CRM_Core_BAO_SchemaHandler::checkIfIndexExists('civicrm_action_schedule', 'FK_civicrm_action_schedule_mapping_id')) {
CRM_Core_DAO::executeQuery("ALTER TABLE civicrm_action_schedule DROP INDEX FK_civicrm_action_schedule_mapping_id");
}
return TRUE;
}

Expand Down

0 comments on commit 45412b5

Please sign in to comment.