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) »
  • Changing member type
Pages: [1]

Author Topic: Changing member type  (Read 759 times)

mhenning

  • Guest
Changing member type
March 29, 2010, 10:19:53 am
Hi,

Our client is getting rid of a member type "ABC community" and would like everyone in there to be moved to another member type "ABC sudo-members".  What is the best way to do this?

I was thinking of running this SQL: "update `civicrm_membership` set membership_type_id = X where membership_type_id = Y" (where X and Y are the values of the membertypes).  Is there any problem with doing this?

Thanks,
Matt

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: Changing member type
March 29, 2010, 11:38:45 am
i think from an organizational standpoint, it might be better to retain the history of individuals having a now-deprecated membership type, and create a new membership record with the new membership type. that way you preserve a more accurate history.

as for handling something like that, you can do bulk membership import. so you could export current members and then reimport them with the new category
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

mhenning

  • Guest
Re: Changing member type
March 29, 2010, 10:59:30 pm
Thanks lcdweb.

Our issue is that the member type we are trying to get rid of should have never existed in the first place.  It was a bad job by a developer who didn't get the data setup correctly.

That being the case, would the sql I mentioned work?  Is there any potential problem doing it that I am overlooking?

Also, how do I do an export of current members?

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: Changing member type
March 31, 2010, 08:01:53 pm
the sql should be fine. just make sure no other data in the records are impacted by settings in the membership type. for example, if one or the other has inheritance via relationships, you might need to alter the changed records to accommodate the difference. but if both types were structured similarly, it should be sufficient to just change the type id.

you can get current members by going to the membership dashboard or doing a search with status = new, current, grace (those three status types are generally considered to be "current"). then select all records and use the action dropdown to export.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Changing member type

This forum was archived on 2017-11-26.