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) »
  • Problem upgrading from 3.2.3 to 3.4.8
Pages: [1]

Author Topic: Problem upgrading from 3.2.3 to 3.4.8  (Read 565 times)

yvoalen

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.x
  • PHP version: 5.2.6
Problem upgrading from 3.2.3 to 3.4.8
June 23, 2012, 05:47:19 am
DB Error: unknown error

Database Error Code: Error on rename of './fed_joomla/civicrm_contact' to './fed_joomla/#sql2-452f-f9' (errno: 152), 1025

ALTER TABLE civicrm_contact DROP  FOREIGN KEY FK_civicrm_contact_mail_to_household_id

Already mentioned in http://forum.civicrm.org/index.php?topic=22988.0.

Tried this with 3.3.6 as well.
Joomla 1.5.25 and CiviCRM 3.2.3, works well, I have a valid backup, tried the upgrade several times, always the same error. Even with other db backups. Checked for FK, everything looks fine.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem upgrading from 3.2.3 to 3.4.8
June 23, 2012, 07:25:16 am

1. Is there an FK with exactly the same name

2. If so, my next guess would be to write a query that checks the column mail_to_household_id and ensure they do point to valid contacts. You can just null that column since we dont use that column and drop it in that version or a future version

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problem upgrading from 3.2.3 to 3.4.8

This forum was archived on 2017-11-26.