I am trying to create an activity plugin that does not need any new database tables. According to https://docs.moodle.org/dev/Activity_modules#install.xml you do not need to create an install.xml
file.
However, looking at the code in /lib/ddl/database_manager.php
, it is pretty clear that the file is actually required. (So the documentation is wrong.)
This would be OK, since one could include an install.xml
file with no tables, like this:
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/listquiz/db" VERSION="20120122" COMMENT="XMLDB file for listquiz module"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
</XMLDB>
However, I still get the error: "Errors found in XMLDB file: Missing TABLES section"
It seems that, looking at the schema definition lib/xmldb/xmldb.xsd
, this should work.
Any ideas?
Thanks,
Brett