@@ -0,0 +1,655 @@
+%22%22%22%0ASaves every file to have new save() logic index those files.%0A%22%22%22%0Aimport sys%0Aimport logging%0A%0Afrom website.app import init_app%0Afrom website.files.models.osfstorage import OsfStorageFile%0A%0Alogger = logging.getLogger(__name__)%0A%0A%0Adef main():%0A    init_app(routes=False)%0A    dry_run = 'dry' in sys.argv%0A    logger.warn('Current files will now be updated to be indexed if necessary')%0A    if dry_run:%0A        logger.warn('Dry_run mode')%0A    for file in OsfStorageFile.find():%0A        logger.info('File with _id %7B0%7D and name %7B1%7D has been saved.'.format(file._id, file.name))%0A        if not dry_run:%0A            file.save()%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add migration to save every file so that it can be indexed