SQL that fits your Celigo imports and exports.
Recent revisions are kept. Restoring one creates a new revision.