isobar-nz/silverstripe-versionprune

Clear up old versioned records

Installs: 1 129

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.1.0 2020-04-29 02:14 UTC

This package is auto-updated.

Last update: 2024-03-29 04:18:41 UTC


README

This module adds a task you can run at will which does the following:

  • Clears all version history after the first 5 for each non-archived record
  • Clears all version history for archived records
  • Clears all version history for orphaned records

This automatically triggers on all dataobjects that have the versioned extension appled to the base class.

Note: Running this task means that archived records can no longer be recovered! Make a database backup if this is not your intention.

For example, if you run this nightly, you can work with records during the day, including recovering deleted records, but not if you leave it overnight.

Installation

composer require isobar-nz/silverstripe-versionprune