Upgrade safely with native changes and checks in one pass.
Recent revisions are kept. Restoring one creates a new revision.