Database migration patterns with a way back.
Recent revisions are kept. Restoring one creates a new revision.