restrict the archived=false update to revisions that still have current entries in the xml_documents table.
restrict the archived=false update to revisions that still have current entries in the xml_documents table.