froot Posted September 15, 2022 Share Posted September 15, 2022 Not sure if that makes a lot of sense or even if it is possible. I happen to find myself iterating the page IDs and other IDs a lot during testing, only to delete the pages and whatnot afterwards. So I'm basically iterating the IDs for no good reason. Wouldn't it be nice to have a module that can reset that ID in the database, either manually or automatically, say upon deletion? 2 Link to comment Share on other sites More sharing options...
Kiwi Chris Posted October 2, 2022 Share Posted October 2, 2022 Something like? $database->exec('ALTER TABLE pages AUTO_INCREMENT = 1'); Link to comment Share on other sites More sharing options...
froot Posted October 2, 2022 Author Share Posted October 2, 2022 Just looking at this line of code I doubt that would accomplish what I had in mind. You're incrementing the id by 1, what I meant is to reset the unnecessary incrementing during testing. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now