17487 Posts in 4473 Topics by 1978 members
|Go to End|
11 June 2007 at 1:46pm
is this a bug or feature? When I delete a page, then it is not deleted from history (`SiteTree_versions` SQL table).
I think it's a bug. The deleted page cannot be accessed from CMS. Furthermore, when I create a new page (of different class), it can be assigned the same ID as the deleted page. This can cause problems.
11 June 2007 at 5:20pm
i suppose that's the way it should work - see it as a backup which silverstripe is just lacking the UI to browse through. the versioned-entries of deleted pages shouldn't disturb anything (if you've got your auto_increment properly set up in mysql, it shouldn't get the same ID)
11 June 2007 at 6:51pm
Lets suppose i have pages with IDs: 1, 2, 3, 4, 5. I delete the page with ID==5. I create a new page, and it has the ID==5. So, I have wrong autoincrement in MySQL? Should the SS sets the autoincrement during the installation?
11 June 2007 at 8:59pm
The ID recycling of SilverStripe is something that needs to be fixed, and has been done so in one of our project-specific branches of SilverStripe.
Once that's fixed, we won't have these problems. And we can look at building an interface for observing historical pages in the CMS.
Ingo - do you perhaps want to get the GSoCer that is doing database work to merge this into the stable core? (Brian's the mentor).
|Go to Top|