CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.1.2 to 4.2.1 is failing due to failure on ALTER TABLE
Pages: [1]

Author Topic: Upgrade from 4.1.2 to 4.2.1 is failing due to failure on ALTER TABLE  (Read 603 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Upgrade from 4.1.2 to 4.2.1 is failing due to failure on ALTER TABLE
September 22, 2012, 10:44:03 am
I am attempting to upgrade a 4.1.2 environment to 4.2.1. But it fails when trying to execute the SQL statement:

ALTER TABLE civicrm_contribution_page DROP INDEX FK_civicrm_contribution_page_payment_processor_id

Output from CiviCRM:

Type   DB_Error
Code   a515ac9c2796ca0e23adbe92c68fc9fc
Message   DB Error: a515ac9c2796ca0e23adbe92c68fc9fc
Mode   16
UserInfo   ALTER TABLE civicrm_contribution_page DROP INDEX FK_civicrm_contribution_page_payment_processor_id [nativecode=1025 ** Error on rename of './pogstone_crm/#sql-854_73c91' to './pogstone_crm/civicrm_contribution_page' (errno: 150)]
DebugInfo   ALTER TABLE civicrm_contribution_page DROP INDEX FK_civicrm_contribution_page_payment_processor_id [nativecode=1025 ** Error on rename of './pogstone_crm/#sql-854_73c91' to './pogstone_crm/civicrm_contribution_page' (errno: 150)]


This occurs during step: Error: Upgrade DB to 4.2.alpha1, called from "CRM_Upgrade_Incremental_php_FourTwo->upgrade_4_2_alpha1('4.2.alpha1') "
« Last Edit: September 22, 2012, 10:52:35 am by Sarah Gladstone »
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade from 4.1.2 to 4.2.1 is failing due to failure on ALTER TABLE
September 22, 2012, 02:07:13 pm
One way to handle this is to find that code, comment it out, and then manually drop the index in the DB, and then rerun the upgrader, all on the original DB of course.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.1.2 to 4.2.1 is failing due to failure on ALTER TABLE

This forum was archived on 2017-11-26.