Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: case number

  1. #1
    blitz2190 is offline Senior Member
    Join Date
    Jul 2009
    Posts
    105

    Default case number

    this mabe a simple procedure but how do i go about reseting the case number to 1

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: case number

    Take a look at this page.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: case number

    Just curious ... why do you want to reset case numbers?

  4. #4
    blitz2190 is offline Senior Member
    Join Date
    Jul 2009
    Posts
    105

    Default Re: case number

    i was customizing the case module and needed to enter quite a bit of data. but when it came time to go live we didnt want it to start at a random high value once i cleared the database and thank andopes your suggestion worked

  5. #5
    Amy Sung is offline Senior Member
    Join Date
    Oct 2009
    Posts
    45

    Question Re: case number

    We've tried the query in SQL. (Run a query: ALTER TABLE tablename AUTO_INCREMENT = 1)

    of link posted from andopes. However it doesn't work.

    Because there are many test cases in our CRM before. So we 'd like to reset the case no. to 1.

    Is there any further solution?

    Thank you!!

  6. #6
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: case number

    Just clear the table direct on the database.
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  7. #7
    Amy Sung is offline Senior Member
    Join Date
    Oct 2009
    Posts
    45

    Question Re: case number

    Which table do you mean?
    Cause after delete all the cases, the following case no. will not reset from no.1 automatically.

    That's why we may need to do some edition from SQL.

    Thanks for replying anyway.

    Is there any solution?

  8. #8
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: case number

    Try to clean all tables and set to auto_increment on cases
    accounts_cases
    cases
    cases_audit
    cases_bugs

    Or drop this tables and do a repair rebuild in admin
    --
    Mário Pereira Martins

    Javali - Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Madan Parque Edifício VI Campus da FCT/UNL
    Quinta da Torre 2829-516 Caparica Portugal
    Phone: +351 212949666 Fax: +351 212948313
    http://www.javali.pt

  9. #9
    Amy Sung is offline Senior Member
    Join Date
    Oct 2009
    Posts
    45

    Question Re: case number

    Hi Mapm,
    Thank you for the suggestions.

    We've tried to cancel every records in Tables of SQL but the new no. still doesn't rest to no.1.

    Is there anyone having more spicific directions?

    thanks in advance!!

  10. #10
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: case number

    Quote Originally Posted by Amy Sung View Post
    Hi Mapm,
    Thank you for the suggestions.

    We've tried to cancel every records in Tables of SQL but the new no. still doesn't rest to no.1.

    Is there anyone having more spicific directions?

    thanks in advance!!
    Hello,

    You can not reset the an auto-increment number by simply deleting records. You need to run an alter table command. Try the following sql after you delete all of records.

    PHP Code:
    ALTER TABLE cases AUTO_INCREMENT 
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Case id and number
    By tanel in forum Help
    Replies: 0
    Last Post: 2006-07-10, 11:03 AM
  2. Case number in case emails
    By rexykik in forum Feature Requests
    Replies: 0
    Last Post: 2006-06-22, 02:15 PM
  3. case number
    By viper007 in forum General Discussion
    Replies: 3
    Last Post: 2006-04-09, 11:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •