Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » trim database?

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: 1341 Views
  • toddm
    Community Member
    15 Posts

    trim database? Link to this post


    Have spent months adding/modifying content in a dev environment and we're nearing launch date. We don't need to retain and version/history information of content. Is there a way to purge the version/history of content?

    Thanks in advance,

  • Liam
    Community Member
    470 Posts

    Re: trim database? Link to this post

    Do you have phpmyadmin installed? You just have to clear out a table in the database called SiteTree_versions.

    I'd suggest making full backups before doing anything, just in case. But the SiteTree_versions is the one you want to empty.

    *Edit* I just realized, while this will work, if you make any edits you won't be able to roll back to the current version you have now. You'd have to leave the last/current version row in the database.

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.