Adding a table for a question type

Adding a table for a question type

by Andrew Solomon -
Number of replies: 1

Note - this question refers to an installation of Moodle 2.3 with Postgres

(Apologies in advance for a silly question but...) I'm adding a table for my new question type, 'ebox'. I wrote the file question/type/ebox/db/install.xml and then realised I could edit it with XMLDB. I checked that the output SQL would work correctly, changed the plugin version and let Moodle do its magic of updating the question type. It said it had succeeded but the mdl_question_ebox table didn't appear.

I created it manually by pasting the SQL XMLDB generated, but I'd like to know how to ensure it's done automatically next time the question type is installed.

 

Average of ratings: -