Fix wrong parameter.
Fix migration script promoting non-versioned to versioned documents.
Make it possible to decide about the document deletion from the
synchronous_hook() of the migration.