![]() |
How to fix the ids?
Hello, I've made a lot of groups. And then I deleted them most of them.
I have like 9 groups left. the counter is messed now, when I make a group it starts on 41. It should start on 10. Anyone know how to make it start from 10? I have basic understanding in MYSQL. But I don't know how to setup the AI. Anyone knows how? Thanks |
Quote:
Code:
UPDATE `usergroup` SET usergroupid = 10 WHERE title = 'Banned Users'; If your db tables have a prefix, don''t forget to include it in your query as well. And replace Banned Users with the name of your custom group that you want to have the uid 10. |
I am just following up on this Muazam. Did the above solution worked for you?
|
I am curious as I think this is what I need from profile fields adds and deletes I have done. Yes I know a different query run is needed.
|
I'll try it soon, Thanks Borbole.
|
Try this query instead. It will reset the auto_increment value to the current highest + 1
[sql]ALTER TABLE usergroup AUTO_INCREMENT = 1[/sql] |
Quote:
|
All times are GMT. The time now is 06:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|