General developer forum

Creating a table through block/db/upgrade. Moodle 3.4+

 
Davo
Re: Creating a table through block/db/upgrade. Moodle 3.4+
Core developersParticularly helpful MoodlersPlugin developers

The immediate problem that jumps out to me is that you are creating a table, without defining any fields.

If you use Moodle's built-in XMLDB editor, then it should generate the correct content for both the install.xml file and the upgrade.php statements you need.


 
Average of ratings: -