Jump to content

Change product ID


Sophia

Recommended Posts

I have two questions:

- If I go into the database and manually change the ID of a product from say 31 to 3, would I break anything?

- At one point in the distant past, when I was still "playing" with WHMCS, I created (too) many products. Even though I deleted them, WHMCS continues the count.

Now, when I create a new one, it gets an id well into the 30's or so. Is there a way to start the counter at the "next" number, which should be around 5 or 6?

 

Thanks :) I'm only being a neat buff, that's all. :oops:

Link to comment
Share on other sites

Yes, you can use mysql to edit the next value for the auto-increment.

 

If you already have clients with the products, then you'll need to alter the packageid on tblhosting when you alter the tblproducts (and related tables - like tblpromotions, tblproductconfiggroups etc)

 

Unless this is *really* causing you a *problem" (rather than just triggering your unusual form of OCD) I'd suggest not bothering :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated