Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Page not deleted from history

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1356 Views
  • xmedeko
    Avatar
    Community Member
    94 Posts

    Page not deleted from history Link to this post

    Hi,
    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.

    Cheers Andrew

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Page not deleted from history Link to this post

    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)

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Page not deleted from history Link to this post

    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?

    cheers
    andrew

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Page not deleted from history Link to this post

    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).

    1356 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.