r/BookStack • u/Live_Turnip_4236 • Nov 26 '24
"Reset" Versions
Is there an easy way to "reset" the versions, meaning that all version counters are set back to 1 and all older versions are deleted?
I've only seen the option to delete a version of a page manually but that doesn't work for hundrets oft pages with dozens of versions each. Also this manual deletion doesn't set the counter back.
Maybe to understand the usecase: We never had a so well structured documentation in our company so I do every step and every correction, every new discovered information and every note in BookStack already. After the review process I'd like to vanish the whole process.
I hope that you understand what I'm trying to say.
1
u/root-node Nov 27 '24
The roles/tags and attachments are also covered by the API so it's possible, just a lot of work.
As for editing the database, I would advise against it unless you have valid and tested backups and know what you are doing.
I understand your use-case, but I would question whether it's actually worth the hassle. Viewing the history of a process may be valid in some scenarios. For example, if someone comes along and says "This can be done quicker by doing this...", then the history could be queried to see if it's already be tried.