Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.2.0
-
Component/s: None
-
Labels:None
Description
Seems for some reason FK_civicrm_contribution_page_payment_processor_id may not exist for a DB which could lead to an error like - http://forum.civicrm.org/index.php/topic,25643.0.html.
With simple grep it seems there aren't too many FK drops ( ~ 3 - 4 ) for v4.2. If we could just make sure they exist before dropping would be better.
Use CRM_Core_DAO::checkConstraintExists() method.