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

Uninstall "drop tall tables" fails when uninstalling

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I set the value: $uninstall = true; in the file uninstall.civicrm.php. Then I tried to uninstall CiviCRM beta 2 under Joomla. I received the following error page:

      Sorry. A non-recoverable error has occurred.
      DB Error: constraint violation

      Database Error Code: Cannot delete or update a parent row: a foreign key constraint fails, 1217

      Return to home page.

      Error Details:

      Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] => -3
      [message] => DB Error: constraint violation
      [mode] => 16
      [debug_info] => DROP TABLE IF EXISTS civicrm_contribution [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]
      [type] => DB_Error
      [user_info] => DROP TABLE IF EXISTS civicrm_contribution [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]
      [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="DROP TABLE IF EXISTS civicrm_contribution [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]"]
      )

        Attachments

          Activity

            People

            • Assignee:
              ashwini Ashwini Poharkar
              Reporter:
              sgladstone Sarah Gladstone
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: