how to create table while installing the plugin

how to create table while installing the plugin

by vijay kumar -
Number of replies: 1

Hi

I am upgraded moodle 2.9 to 3.3. It is working fine, and also upgraded some plugins. It also working fine but my previous version moodle  2.9 , I was create table through database. but i want to my new version moodle create table while installing the plugin.

Thankyou

Average of ratings: -
In reply to vijay kumar

Re: how to create table while installing the plugin

by Rahul Rai -

Hi Vijay 

If you want to create table while installing the plugin. You need to create install.xml in your blocks db folder.

You need to follow some step.

Go to Administration -> Sit administration -> Development -> XMLDB editor.

Find your blocks and click on Create than click on Load { you can see in your block db folder automatically create one install.xml} 

after that you click on Edit than create your table.


More information check this link.

https://docs.moodle.org/dev/XMLDB_editor