process_update_sites.php checked in, tested on staging server
unable to deactivate inactive files, received the following message in Query Browser: Cannot add or update a child row: a foreign key constraint fails (`babel/project_progress`, CONSTRAINT `project_progress_ibfk_1` FOREIGN KEY (`project_id`, `version`) REFERENCES `project_versions` (`project_id`, `version`) ON DELETE CASCADE ON UPDATE CASCADE)
process_map_files.php has the same logic, also unable to deactivate inactive files?