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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Looking for Schema changes from 2.1.4 to 2.2.9
Pages: [1]

Author Topic: Looking for Schema changes from 2.1.4 to 2.2.9  (Read 880 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Looking for Schema changes from 2.1.4 to 2.2.9
February 24, 2010, 08:31:42 pm
Hello I'm looking to find a list of database schema changes between 2.1.4 and 2.2.9.  We are trying the automatic upgrade between these two versions but having FOREIGN KEY RESTRAINTS issues.  The solution here: http://forum.civicrm.org/index.php/topic,4259.msg21599.html#msg21599 is appealing but requires some manual DB structure manipulation before and after the data migration from a 2.1.4 to a 2.2.9 schema.  Where in the code/docs do I find such a thing?

PS. Is there any way to turn OFF foreign key checks during the automatic upgrade process?

PPS. Running 5.0.90 mysql on this server.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Looking for Schema changes from 2.1.4 to 2.2.9
February 24, 2010, 08:54:18 pm
You might want to try this technique: http://kurund.com/blog/2010/02/19/my-notes-upgrading-civicrm-v2-1-to-civicrm-v3-1/

HTh

Kurund
Found this reply helpful? Support CiviCRM

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Looking for Schema changes from 2.1.4 to 2.2.9
February 24, 2010, 08:56:59 pm
The recommended way to deal with schema problems is to import a clean structure for your existing version (2.1.4) in a new db, then import data only from your live site, then upgrade using that clean schema + data. That ensures the structure you are starting out with is correct.

You can also trace the schema changes required from one revision/version to another in this folder:
/civicrm/CRM/Upgrade/Incremental/sql/
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Looking for Schema changes from 2.1.4 to 2.2.9
February 24, 2010, 09:01:42 pm
thank you both.  I will explore both these options.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Looking for Schema changes from 2.1.4 to 2.2.9
February 26, 2010, 11:53:26 am
By exporting data only from my 2.1.4 database (which had originally been upgraded from a 1.7 database) and excluding the following tables from the export:

   a. custom field tables, any thing beginning with "civicrm_value" aka civicrm_value*
   b. civicrm_dupe_match
   c. civicrm_cache

Then uploading all this data, adding my custom fields tables, into a proper 2.1.4 schema helped, but it didn't solve the problem.  I was attempting to upgrade directly from 2.1.4 to 2.2.9, which was a mistake, even with a proper schema it still didn't work.

So I started over with 2.1.4 and upgraded to 2.2.0.  yay! this worked then I could upgrade through the 2.2 series all the way to 2.2.7 no problem.

thanks guys
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Looking for Schema changes from 2.1.4 to 2.2.9

This forum was archived on 2017-11-26.