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) »
  • Resetting Contact ID number for fresh import
Pages: [1]

Author Topic: Resetting Contact ID number for fresh import  (Read 1265 times)

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Resetting Contact ID number for fresh import
January 05, 2010, 08:59:42 am
This may not be precisely the correct area to ask this, but I am importing Access records via a mysql script.  After endless testing, we are ready to do a final import of the data and launch Civi.  However, b/c of the endless testing, our user ID numbers are now starting at 30,000.  I realize this is not crucial, but is there a way to reset the count?  Only one record (mine, the admin) really needs to stay the same, though that is not crucial.  I am just not seeing where the auto-increment in the contact table knows where to start again. 

Thanks,
Maria

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: Resetting Contact ID number for fresh import
January 05, 2010, 09:27:03 am

check the mysql manual. you can do this from mysql command line. u'll need to ensure that all the other tables linked to contact id are also reset appropriately

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

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Re: Resetting Contact ID number for fresh import
January 05, 2010, 09:36:47 am
is there a map which indicates what tables are linked to the contact ID?

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Resetting Contact ID number for fresh import
January 05, 2010, 08:47:55 pm
you might want to take a look for E-R diagram : http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCRM+ERD+1.7

kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Resetting Contact ID number for fresh import

This forum was archived on 2017-11-26.