Tim Hunt
Publicaciones hechas por por Tim Hunt
Note that, exactly because of "What about the orphaned instances of the crossword question type", Moodle won't let you un-install a qtype if there are any questions of that type. That is the only reason you don't have an uninstall option for the old qtype_crossword. The code exists to uninstall any add-on question type - if there are no questions.
So, the clean way to uninstall, is to find and delete all questions, then uninstall, but that does not help if there are quiz attempts you cannot delete.
Anyway, in looks like you found a different route, which I hope works out for you.
If you want to avoid editing version.php, then the alternative is to
- Changed the installed version in the database. That is stored in config_plugins, with plugin='qtype_crossword' and name='version'. Set the value there to the one in the plugins version.php file.
- Then, you need to find the row with name 'allversionhash' in the config table, and set that value to the empty string.
- Then you need to go to Admin -> Server -> Caches and purge the Config cache.
(2. and 3. here are what make this tricky.)
Once again, sorry for the hassles caused by this name collision.