4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: airphoto on March 06, 2003, 03:03:27 PM

Title: Database reset - category numbers.
Post by: airphoto on March 06, 2003, 03:03:27 PM
Is it possible to reset the category numbers without disturbing the database?

Having been in development for 6 months now I have deleted a lot of old categories that I no longer need. The numbering is now something like this.

1,4,9,10,12,18,23,24,30. etc.

I would like to be able to renumber them into their logical order again.
Title: Database reset - category numbers.
Post by: V@no on March 06, 2003, 03:20:24 PM
:( http://4homepages.de/forum/viewtopic.php?t=2269
Title: Database reset - category numbers.
Post by: Chris on March 06, 2003, 06:34:29 PM
The database tables leverage the auto_increment type available in MySQL for the category numbers.  The only way to "renumber" them is to try something like the following:

Title: Database reset - category numbers.
Post by: airphoto on March 08, 2003, 11:44:52 AM
Thank you.