Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10657

Upgrade: Make sure FK exists before dropping

    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.

        Attachments

          Activity

            People

            • Assignee:
              ravish.nair Ravish Nair
              Reporter:
              deepak Deepak Srivastava
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: