by Davo Smith.
You could try the process described here:
https://docs.moodle.org/dev/Moodle_2.7_release_notes#Assignment
I can't promise how well it will work, so it may be best to try it out on a copy of your site's DB + moodledata, rather than on the live site.