def METHOD_NAME():
    log = {}
    log['updatedModerations'] = []
    print 'Getting all project moderation request with linkedProjects changes'
    moderations_all = db.find(moderations_all_query)
    print 'Received ' + str(len(moderations_all)) + ' moderation requests'
    log['totalCount'] = len(moderations_all)
    for moderation in moderations_all:
        updateflag = False
        oldProjectAdditionsLinkedProjectsStructure = moderation.get('projectAdditions').get('linkedProjects');
        oldProjectDeletionsLinkedProjectsStructure = moderation.get('projectDeletions').get('linkedProjects');
        if(oldProjectAdditionsLinkedProjectsStructure is not None):
            for key, value in oldProjectAdditionsLinkedProjectsStructure.items():
                if type(value) == dict:
                   continue
                projectProjectRelationship = { "projectRelationship" : value }
                oldProjectAdditionsLinkedProjectsStructure[key] = projectProjectRelationship
                updateflag = True
        if(oldProjectDeletionsLinkedProjectsStructure is not None):
            for key, value in oldProjectDeletionsLinkedProjectsStructure.items():
                if type(value) == dict:
                   continue
                projectProjectRelationship = { "projectRelationship" : value }
                oldProjectDeletionsLinkedProjectsStructure[key] = projectProjectRelationship
                updateflag = True
        if not updateflag:
            continue
        print '\tUpdating moderation ID -> ' + moderation.get('_id') + ', Project Name -> ' + moderation.get('documentName')
        updatedModeration = {}
        updatedModeration['id'] = moderation.get('_id')
        updatedModeration['projectName'] = moderation.get('documentName')
        log['updatedModerations'].append(updatedModeration)
        if not DRY_RUN:
            db.save(moderation)
    resultFile = open('046_migrate_project_moderation_request_linked_project_relation.log', 'w')
    json.dump(log, resultFile, indent = 4, sort_keys = True)
    resultFile.close()
    print '\n'
    print '------------------------------------------'
    print 'Please check log file "046_migrate_project_moderation_request_linked_project_relation.log" in this directory for details'
    print '------------------------------------------'