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) »
  • CiviCRM 1.9 -> 2.0 activity_history merge patch
Pages: [1]

Author Topic: CiviCRM 1.9 -> 2.0 activity_history merge patch  (Read 1310 times)

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
CiviCRM 1.9 -> 2.0 activity_history merge patch
September 25, 2008, 08:23:29 pm
When CiviCRM 2.0 upgrades a schema from 1.9, it merges some of the civicrm_activity_history table into the civicrm_activity table, but does not merge any activity history row with a label that is not one of the pre-defined labels.  Here is a patch to fix that:

https://svn.dharmatech.org/svn/civicrm/2.0/branches/devl/merge_activity_history.patch

You need to accept our self-signed certificate to access our repository.

This patch is against CiviCRM 2.0.6.  Apply it to the CiviCRM 2.0 code before you start the upgrade process.  It works by finding all your self-defined activity labels and adding them to the civicrm_option_values table before the table conversion.

Peace.  Out.
DharmaTech
http://dharmatech.org
oss@dharmatech.org
801.541.8671

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: CiviCRM 1.9 -> 2.0 activity_history merge patch
September 26, 2008, 05:22:11 am
thanx for the patch :)

Kurund
Found this reply helpful? Support CiviCRM

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviCRM 1.9 -> 2.0 activity_history merge patch
November 06, 2008, 07:29:11 pm
There is now an alternative to patching the code.  You can download and run the CiviCRM DB Tools from http://wiki.civicrm.org/confluence/display/CRMDOC/Database+Troubleshooting+Tools.  The repair tool will add user-defined activity to the civicrm_option_value table so that the upgrade to 2.0 will not destroy the activity history.
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • CiviCRM 1.9 -> 2.0 activity_history merge patch

This forum was archived on 2017-11-26.