Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

*_versions big table

Go to End

3 Posts   1199 Views


Community Member, 89 Posts

18 May 2011 at 1:08am

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?


Forum Moderator, 1899 Posts

18 May 2011 at 4:42am

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.


Community Member, 89 Posts

18 May 2011 at 7:39am

perhaps it makes sense to experiment with the ?
function publish($fromStage, $toStage, $createNewVersion = false) {
$createNewVersion - This setting can disable the creation of new versions?