Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » *_versions big table

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 929 Views
  • fiord
    Avatar
    Community Member
    79 Posts

    *_versions big table Link to this post

    hi
    Is there a way to disable silverstraype storing information in a table *_versions?
    How to properly clean all table versions to leave them just one last change?

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: *_versions big table Link to this post

    If it's your own DataObject then you must have added the extension, so you must be asking about the Pages so no I don't think so, not easily. Besides it is really nice functionality for people to be able to undo changes they have made to pages. To "clean" them you can just delete old rows in the _Version table I guess, but I'd again you are removing key functionality for the users.

  • fiord
    Avatar
    Community Member
    79 Posts

    Re: *_versions big table Link to this post

    perhaps it makes sense to experiment with the http://doc.silverstripe.org/sapphire/en/reference/versioned ?
    function publish($fromStage, $toStage, $createNewVersion = false) {
    $createNewVersion - This setting can disable the creation of new versions?

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