Migrate content from mod_hvp to mod_h5pactivity
Moodle plugin allowing to migrate activities created with the mod_hvp plugin created by Joubel to the new mod_h5pactivity created by Moodle HQ since Moodle 3.9.
How to use this tool
There are two ways to execute the activity migration:
- Web interface: site administration -> Migrate content from mod_hvp to mod_h5pactivity
- CLI via terminal: php admin/tool/migratehvp2h5p/cli/migrate.php --execute
Migrations tool will scan for non migrated hvp activities and will create as many H5P activities as needed.
By default, the CLI method will only migrate up to 100 hvp activities per execution and will keep the originals hvp in the courses. Use the option "--help" to know the CLI params to change this behaviour to increase the migration limit, delete/hide the originals hvp or migration only some hvp activities based on their content-type.
The tool will only migrate each hvp once. In case you need to re-migrate an hvp, just remove or rename the migrated h5p activity, this way the tool won't detect the hvp as migrated.