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) »
  • Upgrading to 2.2
Pages: [1]

Author Topic: Upgrading to 2.2  (Read 1159 times)

Mikey P

  • Guest
Upgrading to 2.2
May 11, 2009, 08:48:43 pm
Hi, trying to upgrade to 2.2 and running into:

Code: [Select]
Database Error Code: Error on rename of './astdcasc_civicrm_local/civicrm_group_nesting' to './astdcasc_civicrm_local/#sql2-70-ac' (errno: 152), 1025
Tried running:
Code: [Select]
ALTER TABLE `civicrm_group_nesting`
    ADD CONSTRAINT `FK_civicrm_group_nesting_child_group_id` FOREIGN KEY (`child_group_id`) REFERENCES `civicrm_group` (`id`) ON DELETE CASCADE;

As was suggested at this post, but got this error:

Code: [Select]
Error message from server:

Cannot add or update a child row: a foreign key constraint fails (`astdcasc_civicrm_local/#sql-70_1`, CONSTRAINT `FK_civicrm_group_nesting_child_group_id` FOREIGN KEY (`child_group_id`) REFERENCES `civicrm_group` (`id`) ON DELETE CASCADE)

Not sure where to go from here...

Mikey P

  • Guest
Re: Upgrading to 2.2
May 12, 2009, 11:07:12 am
I've resolved this by deleting some test data and adding FK constraints prior to upgrading.

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

This forum was archived on 2017-11-26.