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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1260 Views

Avatar
WebSpilka

Community Member, 89 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, 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.

Avatar
WebSpilka

Community Member, 89 Posts

18 May 2011 at 7:39am

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?