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.

General Questions /

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

*_versions big table


Reply


3 Posts   982 Views

Avatar
WebSpilka

Community Member, 83 Posts

18 May 2011 at 1:08am

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?

Avatar
swaiba

Forum Moderator, 1805 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.

Avatar
WebSpilka

Community Member, 83 Posts

18 May 2011 at 7:39am

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