upgrade media and file_entity