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