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 »
  • Using Import (Moderator: Yashodha Chaku) »
  • Is there a way to consolidate data on contacts location types?
Pages: [1]

Author Topic: Is there a way to consolidate data on contacts location types?  (Read 591 times)

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
Is there a way to consolidate data on contacts location types?
February 01, 2012, 06:39:34 am
Now that I better understand Civi, I realize some of the extraneous data confusion I have is due to multiple location types. This has led to storing email address and phone numbers inconsistently in main, work, other locations. Is there any utility to merge this data--for example, delete the "main" location and have all existing data move to "work" as default? Or is this purely a database cleanup task I should do directly in SQL?

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: Is there a way to consolidate data on contacts location types?
February 01, 2012, 07:39:13 am

sql is your friend in this case. Address has the restriction of one location type / address. the others can have multiple values per location type

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Is there a way to consolidate data on contacts location types?

This forum was archived on 2017-11-26.