Reset Issue ID?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ChrisOFNA
Posts: 3
Joined: 20 Jun 2014, 17:14

Reset Issue ID?

Post by ChrisOFNA »

Hey Guys,

I'm running MantisBT 1.2.17 and I was wondering if there was anyway to reset the Issue IDs back to 0? I deleted all the issues I had after testing out but now we will be implementing this in the field and we want to start fresh.
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reset Issue ID?

Post by atrol »

Running the following statement in your database should work

Code: Select all

ALTER TABLE mantis_bug_table AUTO_INCREMENT=1;
Please use Search before posting and read the Manual
ChrisOFNA
Posts: 3
Joined: 20 Jun 2014, 17:14

Re: Reset Issue ID?

Post by ChrisOFNA »

Sorry for my ignorance but where would I run this at? I set this up on a Windows 2008 R2 machine.
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reset Issue ID?

Post by atrol »

I don't know what you have installed on your machine.
You can run this with any MySQL database client, e.g. phpMyAdmin, mysql command line, MySql Workbench, ...
Please use Search before posting and read the Manual
ChrisOFNA
Posts: 3
Joined: 20 Jun 2014, 17:14

Re: Reset Issue ID?

Post by ChrisOFNA »

phpMyadmin, definitely not MySQL.
Post Reply