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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing target type of Custom Data Group
Pages: [1]

Author Topic: Changing target type of Custom Data Group  (Read 1616 times)

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Changing target type of Custom Data Group
April 23, 2008, 07:22:03 pm
Whoops. We created a custom data group (way back when) that applies to individuals. Now we find we need to make it apply to all types of contacts instead - so we can store the same data against households.

Two options present themselves.

1.
Code: [Select]
UPDATE civicrm_custom_group SET extends = 'Contact' where id = 1;
Looks good to me. Am I gonna break stuff?

2. Create a new custom group, migrate all the data across, and lose the old one.

Bit more work, but hardly impossible.
@xurizaemon ● www.fuzion.co.nz

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: Changing target type of Custom Data Group
April 24, 2008, 12:54:48 am

i assume 2.0.

option 1 should work fine since individual and contact are the same record and use th same FK

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

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Changing target type of Custom Data Group
April 24, 2008, 01:44:56 am
yes, 2.0, sorry for not being specific

will give it a crack and report back if anything unexpected happens :)
@xurizaemon ● www.fuzion.co.nz

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Changing target type of Custom Data Group
April 06, 2010, 05:25:13 pm
so wondering if this is when we tried and failed with this chris.

Lobo - if i change 'extends' in the DB for a Custom Group that is currently set for Orgs and we now want to provide to Contacts, when I reset the field to Contacts, the Group gets listed as being for 'Contacts' but when I go search for the fields to put in a Profile for example, they continue to be listed under Orgs, not Contacts.

Is there another relatively simple step required here - or is this the beginnings of sign that this won't be straightforward. ta.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: Changing target type of Custom Data Group
April 06, 2010, 09:39:54 pm

if i had to guess, civicrm_cache was not truncated

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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Changing target type of Custom Data Group
April 06, 2010, 10:15:59 pm
BINGO - thanks.

So the issue here is a client had 'inherited memberships' set up but it is causing them high admin overheads, and the 'orgs' are a 1:1 with the individuals so we are looking at converting all the fields and memberships over so it is simpler for them, for joining up etc.

Looks like the path may not be that traumatic.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing target type of Custom Data Group

This forum was archived on 2017-11-26.