Closed Ligerx closed 5 years ago
Fixed in https://github.com/TachiWeb/TachiWeb-Server/commit/102ca6230358eb0a505948d15d49765f5c360dc6
The category id increment behavior was actually correct. The category manga being remembered was definitely not intended behavior.
This issue occurred because the cleanup calls were not being run after stuff was deleted in the database. This was a pretty critical issue, and it probably caused a ton of other bugs... Excellent find!
When you create a category, it creates a new one with id of the largest non-deleted id + 1. However, this is incorrect behavior because it's possible to create a new category with an old id and that old ids' corresponding manga.
example
I believe expected behavior is that category ids do not get reset. They continue to increment even if categories are deleted.