Add DB migration revert (issue #4344)