Change sequential ID - first / start number

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jones
Posts: 75
Joined: Sat Jul 20, 2013 6:41 pm

Change sequential ID - first / start number

Post by jones »

Hello :-)

I've been away from Hesk for a period. And forgot how it is I change. The number as Sequential ID starts with.
Are there some that can help with that?

Have searched the forum. But can not find a place where that is described. How do I change the number as Sequential ID starts with?

Since I need to start with the 00053

Thanks
Jonas
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Change sequential ID - first / start number

Post by mkoch227 »

The sequential IDs are driven by the database itself (HESK does not tell the database what the next sequential ID should be). You can alter the AUTO_INCREMENT value on the tickets table to tell the database what the next ID should be:

Code: Select all

ALTER TABLE hesk_tickets AUTO_INCREMENT = 53
I'm not sure if HESK will do anything weird if the auto increment number is changed; however I don't think it will since tickets can be deleted which breaks the flow of IDs anyways.

If you want to add padding to the ID (i.e. 00053 instead of 53), you will have to do some sort of logic in the PHP pages to properly pad it, or modify the SQL queries to pad some 0s when selecting the data.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: Change sequential ID - first / start number

Post by Klemen »

What Mike said is correct. And no, changing the value will not break anything in HESK.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
jones
Posts: 75
Joined: Sat Jul 20, 2013 6:41 pm

Re: Change sequential ID - first / start number

Post by jones »

Hi Mike & Klemen,

Thanks for the quick reply :-)
- Which file should I change "AUTO_INCREMENT" in?

Jonas
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Change sequential ID - first / start number

Post by mkoch227 »

You want to execute the query in a MySQL database management application, such as phpMyAdmin.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply